From patchwork Mon Feb 12 10:24:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnath X-Patchwork-Id: 199649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2349351dyd; Mon, 12 Feb 2024 02:46:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtAkrVUZTXeUS3cTS8Z1/I6q/JawNijrzEBoLS8yfiQzJyNpPWmbTy/fnmCZNN+bJn9JPe X-Received: by 2002:a05:6a20:c78f:b0:19c:a54e:fd4c with SMTP id hk15-20020a056a20c78f00b0019ca54efd4cmr5413310pzb.61.1707734787130; Mon, 12 Feb 2024 02:46:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707734787; cv=pass; d=google.com; s=arc-20160816; b=v0c/Auz7ZisKDRvYBO8aZWIFRCPBYauUgJPo8lwVwmfr1EJA7oWuE1KLT4ykLxuIG9 KozBpsQXp3QmAGluAIzY2MErkHvSZAMwaqwsaEU+gG6gRWGQWuPWnhiZjbyxMCDPZ4KT jG1hPC4Ae9BxldzZotNTLfj93ihHHASUXWPGuCjeeCkPl5JgUyqwMn5NzjeKYirBMZE1 Ej93a3FecPYARwcBxcF3vVxBUBbGyHz4P92lKkE+yIMGs0+g2knI8UMieInbblb8+OTN LaWdHxyuCFXE6C7onIlPmGE8cIM3u/2dRdNXx52b9p32IzAk+a2iE9kHIxA49zI5tOO0 RgaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=wX5Y9NIxXbSlgIWh11+vw5uicM2wfMs5ez2NdzS/V6E=; fh=wqna3R7PQeHjU9ryYMOYt7hE2bSFVEfTLE8Ee3WttQM=; b=dyV6wXBI6bpJi4iWo/fqFaW7LSGtR+Hro+YGLO96Zt4LfukB391+dxPZ/a/BZx6Rpo sFb8JP+LAE3znty3nACSEGhAjgeFVm9G/3dOdPc9FRuIPzSFOLLOU2O/nnOunyUV0HZE HJUN327UgC1cH1ovQwxPPtbIL4zcvHclylZ4B11B3DtQDhecE2RDWC6VR2dMIAF4XeeB BpPG959Cso8zY+11/OSK3oo13blX6tlV/SBkz1VmRNDb3PjDz5BHQoCHwhxkLmO+ICfw 5KF0Ib4iPTWhaskBqlhYm8d2pUrD1qvm2/pAnnvfAaQ8RRei1J//xRF4MxGsS72XSEzm emlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tsRvo5XF; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-61323-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61323-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCV4xTVLWgTjBxfDMGto2H5b2wCDhiDUFDaNCNwoavhNCZ0GrH/10pujqM5DbQ1v/Rdn0YUJq3VBLmHr2OeRZ8S47iNfUQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cl15-20020a056a02098f00b005c1b58a321asi62435pgb.411.2024.02.12.02.46.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 02:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61323-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tsRvo5XF; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-61323-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61323-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7D750B25874 for ; Mon, 12 Feb 2024 10:36:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AA9F38FA7; Mon, 12 Feb 2024 10:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="tsRvo5XF" Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F9C025613 for ; Mon, 12 Feb 2024 10:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734126; cv=none; b=akMNIifUJ8QaxiymdnyWUByFZ2b2Bt4Ci9ZCnpLzo8/p3cjIql6kCnOlgVqexuf80Ndt0vDbMiTw/STPiVtJDSek0RYhTKxeurBsgIp70pXLuP+c54v9YmEkdUc5/HPFgpQ4bYL13U23dmE20WbcY7QKOjCB8NWz+w89osIRNSU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734126; c=relaxed/simple; bh=Ny+DBifyKyXAz2F/UFQ1+Xjj9V0tXAdi8v8PFXVQZ3E=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=krkmYRabYyfnfQJnaEmQ2D/wK3uQxAJ2d0/BpGIA064E5ria6KIXuwGdQBkwBBi0iv7SmA6a7DrVC6Kz+gxqOxSKMtJHT5DXjoR8SAsrk1rr4r+Uem6/vaG/NO9t9ma8103xAb/qe9VAnFHvQh1J6nZOVQwzfFUHuZtv0ZE/txo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=tsRvo5XF; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240212103516epoutp04a599a3e1f39af83b41604103c25ee3e5~zFyFu46yU1318613186epoutp04D for ; Mon, 12 Feb 2024 10:35:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240212103516epoutp04a599a3e1f39af83b41604103c25ee3e5~zFyFu46yU1318613186epoutp04D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707734116; bh=wX5Y9NIxXbSlgIWh11+vw5uicM2wfMs5ez2NdzS/V6E=; h=From:To:Cc:Subject:Date:References:From; b=tsRvo5XFQpSnypXCoVDvymQ6F/GD4qjsByO59Q3AYLoDyhLAjTzEZwJ9I0j52wL9C Wpwlf/aqUsI8vNXzxTm4PvgdhdTokVU5xAdr4XHBQe81PpMawyHv6wi6QgtviOPvIu KK5YdGxOnwRQnnLnvqB6RmN5CmuwU7Ufj71Yyjm8= Received: from epsmges5p1new.samsung.com (unknown [182.195.42.73]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20240212103515epcas5p153badaf7f7ce587fc7d9bc415dcfd4b8~zFyFBoxj91433214332epcas5p1U; Mon, 12 Feb 2024 10:35:15 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 28.BE.09634.364F9C56; Mon, 12 Feb 2024 19:35:15 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20240212102417epcas5p31745b234ab239009c7ff29d0f59c1126~zFogiJnfL0631406314epcas5p3n; Mon, 12 Feb 2024 10:24:17 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240212102417epsmtrp28115ed66ef2231ea12f9b577b9c524cf~zFoggw2Bi1178511785epsmtrp2j; Mon, 12 Feb 2024 10:24:17 +0000 (GMT) X-AuditID: b6c32a49-159fd700000025a2-93-65c9f4636f94 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id A3.14.08755.1D1F9C56; Mon, 12 Feb 2024 19:24:17 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240212102413epsmtip2ba84ef33e822b2456c2c3afb1a2f8550~zFocuQrGZ1282812828epsmtip2h; Mon, 12 Feb 2024 10:24:13 +0000 (GMT) From: Onkarnarth To: rafael@kernel.org, lenb@kernel.org, bhelgaas@google.com, viresh.kumar@linaro.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, r.thapliyal@samsung.com, maninder1.s@samsung.com, helgaas@kernel.org, Onkarnath , Stanislaw Gruszka Subject: [PATCH v2 1/2] ACPI: use %pe for better readability of errors while printing Date: Mon, 12 Feb 2024 15:54:03 +0530 Message-Id: <20240212102404.1900708-1-onkarnath.1@samsung.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAKsWRmVeSWpSXmKPExsWy7bCmlm7yl5OpBmcX81ksacqwuPT4KpvF 9JeNLBZPJ2xltnh1Zi2bxd3+qSwWOx++ZbNYvq+f0eLyrjlsFmfnHWez+Nx7hNHi8Pw2FovJ 754xWlw6sIDJYkXPB1aL470HmCw23su2mPtlKrPFvo4HTBYf92xgtOg48o3ZYuNXD4utR7+z O4h7rJm3htGjZd8tdo8Fm0o9Nq/Q8ti0qpPN4861PWwe804Gerzfd5XNo2/LKkaPzaerPT5v kgvgjuKySUnNySxLLdK3S+DKmH/7EnvBa8GKJTsvMzUwTubvYuTkkBAwkTj6tpMJxBYS2M0o 8Wy5QxcjF5D9iVHi57lLrBDON0aJQ5cvM8F0XFwziREisZdR4v2ySSwQzhdGiSl3f7KDVLEJ aEnMuHOACSQhIrCFSWLJpYPsIA6zwGwmiXXfvrOAVAkLhEts/zEBbC6LgKrEt+eTweK8AnYS a9cvh9onLzHz0nd2iLigxMmZT8BqmIHizVtnM4MMlRB4wSFxsfMhO0SDi0TTrrtQtrDEq+Nb oGwpic/v9rJB2PkSLbNnATVzANk1ElefqkKE7SWeXFzIChJmFtCUWL9LHyIsKzH11DomiLV8 Er2/n0CdxiuxYx6MrSrxa8pUFghbWuL+77lQmzwkzl28zA4J4FiJxqb7rBMY5Wch+WYWkm9m IWxewMi8ilEytaA4Nz212LTAMC+1XK84Mbe4NC9dLzk/dxMjOFFqee5gvPvg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0tzBuH3VB71DjEwcjIcYJTiYlUR4L804kSrEm5JYWZValB9fVJqTWnyIUZqDRUmcV/xF b4qQQHpiSWp2ampBahFMlomDU6qBSbSo1nLGLMlc88hDyW4yX1yuLZGefnCaQtYzl5h5zzMz PT3lpDdFbc0+tFWsyMwpxOur9/NFK/d0PVZffpMtdRYXu7Fd7Fn/W4/mc3PcseKZ8fVWl79M +qKbhtNNDAryuaK+i3w+MuPgK+5JO546phasTF0+rUA4MvHZpAjDt0WHZu/+Ynai9kVTfF34 rZVnAhfN9p5RxjJ7XULfZye3JYG9GgtsHO7MXiAlXaHNOntjo8eVxclJ9yZnbTkfeFJS3iJ+ csGPKa9fnPV9WHUs5+yM5u5zuyJr82QFmeoKbSdVfUiYxbkzsH9m/Syu4PLr3ys1pNgLAyL9 n8WfWzRP8UzfWmEm4c6/7PE5FuablViKMxINtZiLihMBEMFtiisDAAA= X-CMS-MailID: 20240212102417epcas5p31745b234ab239009c7ff29d0f59c1126 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240212102417epcas5p31745b234ab239009c7ff29d0f59c1126 References: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790689712435574240 X-GMAIL-MSGID: 1790689712435574240 From: Onkarnath As %pe is already introduced, it's better to use it in place of (%ld) for printing errors in logs. It would enhance readability of logs. Signed-off-by: Maninder Singh Signed-off-by: Onkarnath Reviewed-by: Stanislaw Gruszka Reviewed-by: Bjorn Helgaas --- v1->v2: Updated subject line as per file history & corrected spellings in description. drivers/acpi/acpi_processor.c | 2 +- drivers/acpi/acpi_watchdog.c | 2 +- drivers/acpi/pci_slot.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index 4fe2ef54088c..2ddd36a21850 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c @@ -161,7 +161,7 @@ static void cpufreq_add_device(const char *name) pdev = platform_device_register_simple(name, PLATFORM_DEVID_NONE, NULL, 0); if (IS_ERR(pdev)) - pr_info("%s device creation failed: %ld\n", name, PTR_ERR(pdev)); + pr_info("%s device creation failed: %pe\n", name, pdev); } #ifdef CONFIG_X86 diff --git a/drivers/acpi/acpi_watchdog.c b/drivers/acpi/acpi_watchdog.c index 8e9e001da38f..14b24157799c 100644 --- a/drivers/acpi/acpi_watchdog.c +++ b/drivers/acpi/acpi_watchdog.c @@ -179,7 +179,7 @@ void __init acpi_watchdog_init(void) pdev = platform_device_register_simple("wdat_wdt", PLATFORM_DEVID_NONE, resources, nresources); if (IS_ERR(pdev)) - pr_err("Device creation failed: %ld\n", PTR_ERR(pdev)); + pr_err("Device creation failed: %pe\n", pdev); kfree(resources); diff --git a/drivers/acpi/pci_slot.c b/drivers/acpi/pci_slot.c index d6cb2c27a23b..741bcc9d6d6a 100644 --- a/drivers/acpi/pci_slot.c +++ b/drivers/acpi/pci_slot.c @@ -111,7 +111,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) snprintf(name, sizeof(name), "%llu", sun); pci_slot = pci_create_slot(pci_bus, device, name, NULL); if (IS_ERR(pci_slot)) { - pr_err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot)); + pr_err("pci_create_slot returned %pe\n", pci_slot); kfree(slot); return AE_OK; } From patchwork Mon Feb 12 10:24:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnath X-Patchwork-Id: 199638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2345799dyd; Mon, 12 Feb 2024 02:36:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWIniU8Vlli6Wq/WgJpPgdwrEOd2a+mAq6nb+poJB585QjV84MJGEdLeyAh8ihKWGis1M226odSa2ruaWrLGIfVE1/Gnw== X-Google-Smtp-Source: AGHT+IG2R/76FUdZR3LfKM3+S11jCgtRyXQC/d/4ZFmDd4itRD0wSFXV1cPF7vpPymEQ2HeDqoVP X-Received: by 2002:a17:906:340f:b0:a3c:4b73:e3c9 with SMTP id c15-20020a170906340f00b00a3c4b73e3c9mr4523793ejb.4.1707734172878; Mon, 12 Feb 2024 02:36:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707734172; cv=pass; d=google.com; s=arc-20160816; b=NGcmdChFm6pxCB8fRNOE0oCwwpwGO4Nhqmh33aFHu2qiAW5K7hb0p7ihUt8F/7DzX8 qJLVGba4HD4wQpCNIxAyXNbSEHGlZH8n3/H9vH7Qax91hXb12JfCTuPFz8JecnJLVReE lQs0w36iilKP56QYcA7vz/EChLvpjtSt3NnFOTlnkxlsqk+n2dtkd1K4ycgtQ2tGyS42 /9fVsqQtHeldHT5iR0eXvynAU3XGRCdTPQa2OEoDyiA93qWtiQ8qhr13fTEKvj6rm0st GGPB5zfcRvCUQ8f8j4DLq186xFbXKjFkvhDLxXnO9AnavMazMlXyQcTm9vW5KbekEJWY R53A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=hE+eDG2GxhJPpLaElEHIROodVE8STJFl+Q2ht+hx3xE=; fh=mf+ZG3UR5TphopYmO1JtClReOfqBSQ4r0tee2lRQTEI=; b=IMK2l9P+3e587cNvV/y3W3M11/ihmU5dA97E71Ee3hb+sg1OyLBjiEZI9ckTXFTR4U AaYnS4laAViN7ZpyatXLK/EAYgPC8J1jrhouznfDpe2r8/SW7QmkVTNRuW0kb1F+9mGl +yMAJD/OX9+/Yzd92qgmZV4i7le2/0u5GbbO2X8c+0l6UfVB0sWnWb8yttkemsQERe3S TVDiQDQoXRP2qlCj0SF0qOCJ1QOe7Xv8cE9QAVXktM0gBS5900jf6mnMtAkrDzbz67H9 fAvl2H9H/ZmWmujNzGh0UbME1LVGXK6ySSgkhs/H8/l1sVOtpqZLuWNf5+3Gwh8sdWk4 kLhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=haSv7bqJ; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-61324-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61324-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCV8tMgPg6boAAJUbHuCvCVRyVBmNkfbDewsL1ESkO4Qo8vJTotRUOkrbCQ+siX3k6kNJ3oS39xHIydrU6klj8Cp8U3QLA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d26-20020a17090648da00b00a3ccb443020si56091ejt.568.2024.02.12.02.36.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 02:36:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61324-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=haSv7bqJ; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-61324-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61324-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 523B81F215C6 for ; Mon, 12 Feb 2024 10:36:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE9D538FB2; Mon, 12 Feb 2024 10:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="haSv7bqJ" Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17BD12574F for ; Mon, 12 Feb 2024 10:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734127; cv=none; b=kmsoeykBCLcIEy9hqF4Bvbm1bjbbR5uLaAOHirtlZf+1j1lq843fvgWWuZEsalvCmLOAC67SEs9WpbPbIyhY0VdVds9R8uQ9uDXQuQr02AEJIDo6YydGM0hG3khJK/l08qj5yTf8b3bTkxWq1zv7ksWcBGPEDlZvZep+4raAUcc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734127; c=relaxed/simple; bh=oEN+dwSDlX4Wf7XHSwlhkxtlCib+wj4mwpgMAlW6/PU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=YldJGgDCXPwmyxyu1gUyeQ6JsLvFh9BufVBkJ5PSPl/cgk5T0XrPOTa+IbLt7xOJ6R2cZF4ygIg4REfXt3Y+9ScrJfESgZLzR2fD8CtX8A8k+QUMAyvvwUtFxP/BYq1XNf/zVJdVGwfhEgId34a5XM4S6qH5urTLgOwllkMUey0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=haSv7bqJ; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240212103524epoutp045f1c1a0368b141fca86d1afa66c7f15b~zFyNRCK_-1307313073epoutp04N for ; Mon, 12 Feb 2024 10:35:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240212103524epoutp045f1c1a0368b141fca86d1afa66c7f15b~zFyNRCK_-1307313073epoutp04N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707734124; bh=hE+eDG2GxhJPpLaElEHIROodVE8STJFl+Q2ht+hx3xE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=haSv7bqJZE4ZeskYWr0X7iOFvchScxYZGegfCG956YjPFhLb6iHZ8GJWKbh8XKcHu hDp5eBt6RKU1cohYqdWR5bbv5p6RhRdUWkb067LDGbUXqorYxOf1TKHfsxQXL+5YS9 YWZZkXRllnp7zbGpqbMmjFKcwS2AlFRbcItpke/c= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20240212103523epcas5p34acfeaf02bab59f0263b944dfb9d320c~zFyMS6TqR1499914999epcas5p3d; Mon, 12 Feb 2024 10:35:23 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 79.07.09672.A64F9C56; Mon, 12 Feb 2024 19:35:22 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20240212102425epcas5p176017ab3c94d39af29bbeaa72a43a996~zFooENVFL3127531275epcas5p1a; Mon, 12 Feb 2024 10:24:25 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240212102425epsmtrp188e8822434c2a4d1347dabb50dbbc173~zFooDNwj10772407724epsmtrp1j; Mon, 12 Feb 2024 10:24:25 +0000 (GMT) X-AuditID: b6c32a4b-39fff700000025c8-f4-65c9f46a0f1b Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1C.88.07368.9D1F9C56; Mon, 12 Feb 2024 19:24:25 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240212102421epsmtip22276b86b88307151f59ab9ad28d86385~zFokQfgB_1200912009epsmtip2I; Mon, 12 Feb 2024 10:24:21 +0000 (GMT) From: Onkarnarth To: rafael@kernel.org, lenb@kernel.org, bhelgaas@google.com, viresh.kumar@linaro.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, r.thapliyal@samsung.com, maninder1.s@samsung.com, helgaas@kernel.org, Onkarnath , Stanislaw Gruszka Subject: [PATCH v2 2/2] cpufreq/schedutil: print errors with %pe for better readability of logs Date: Mon, 12 Feb 2024 15:54:04 +0530 Message-Id: <20240212102404.1900708-2-onkarnath.1@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240212102404.1900708-1-onkarnath.1@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDKsWRmVeSWpSXmKPExsWy7bCmum7Wl5OpBtsPWFssacqwuPT4KpvF 9JeNLBZPJ2xltnh1Zi2bxd3+qSwWOx++ZbNYvq+f0eLyrjlsFmfnHWez+Nx7hNHi8Pw2FovJ 754xWlw6sIDJYkXPB1aL470HmCw23su2mPtlKrPFvo4HTBYf92xgtOg48o3ZYuNXD4utR7+z O4h7rJm3htGjZd8tdo8Fm0o9Nq/Q8ti0qpPN4861PWwe804Gerzfd5XNo2/LKkaPzaerPT5v kgvgjuKySUnNySxLLdK3S+DKmLtjLltBH0fFpCeHmBsYP7J1MXJySAiYSJy72skEYgsJ7GaU mD1BqIuRC8j+xCgxb9IzFojEN0aJnRfFYBrm9FxnhSjayyhxrWMuE4TzhVFi5vfpYB1sAloS M+4cAEuICGxhklhy6SA7iMMsMJtJYt2372BVwgKJEn/XvgOzWQRUJV4uec4OYvMK2Elc+v2L EWKfvMTMS9/B4pwC9hKP1i1jhqgRlDg58wlYLzNQTfPW2cwgCyQE2jkl9i3cAPWdi8ScvdvY IWxhiVfHt0DZUhIv+9ug7HyJltmzgJo5gOwaiatPVSHC9hJPLi5kBQkzC2hKrN+lDxGWlZh6 ah0TxFo+id7fT5gg4rwSO+bB2KoSv6ZMZYGwpSXu/54LdY2HRP+in9Cgm8QosfD+TfYJjAqz kLwzC8k7sxBWL2BkXsUomVpQnJueWmxaYJyXWq5XnJhbXJqXrpecn7uJEZxAtbx3MD568EHv ECMTB+MhRgkOZiUR3kszTqQK8aYkVlalFuXHF5XmpBYfYpTmYFES533dOjdFSCA9sSQ1OzW1 ILUIJsvEwSnVwOTmc0G6KGd/MhOTx+rilx8m9FWblUS5t7sLzPHzVp5/6Lf4x6Vb/S7Zbny0 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szbbqcWudBztWGXs/WRmHtWqm49cY8Xq7YE3VXOme20rPv3J3Yf fpfF4heboyezTPgvsvpI1SMlg7aktZfdfD3/WZ8K3SZlumdLjv7ps1aO4SdOFlophz8J+tZ+ /qbi4buVvXei//7XDefabWXjUyG6M31d6c79ttx/Ig8IrdXey3DgsP5Em79fU4+eO/NP8v93 o+mXfu+a3zjl8xuXx/v2+cZe8zZ2myFv8ujp7n4GTg/Btj1+FU82H9vlqfrub0PXXLZzSxnd 5r2MTEpuSb6lleEb5+eRn13ys+iGm7vQjrzjcoLxmesMz191i/vj2a3EUpyRaKjFXFScCACn w033QwMAAA== X-CMS-MailID: 20240212102425epcas5p176017ab3c94d39af29bbeaa72a43a996 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240212102425epcas5p176017ab3c94d39af29bbeaa72a43a996 References: <20240212102404.1900708-1-onkarnath.1@samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790689068207261039 X-GMAIL-MSGID: 1790689068207261039 From: Onkarnath Instead of printing errros as a number(%ld), it's better to print in string format for better readability of logs. Signed-off-by: Onkarnath Reviewed-by: Stanislaw Gruszka Reviewed-by: Valentin Schneider --- v1->v2: Updated subject as per file history kernel/sched/cpufreq_schedutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index eece6244f9d2..2c42eaa56fa3 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -671,7 +671,7 @@ static int sugov_kthread_create(struct sugov_policy *sg_policy) "sugov:%d", cpumask_first(policy->related_cpus)); if (IS_ERR(thread)) { - pr_err("failed to create sugov thread: %ld\n", PTR_ERR(thread)); + pr_err("failed to create sugov thread: %pe\n", thread); return PTR_ERR(thread); }