From patchwork Tue Feb 13 07:44:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnath X-Patchwork-Id: 200267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp394907dyb; Tue, 13 Feb 2024 00:22:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlSwpBbdVSZePA3OjRTDYg7zy79QAC9/CcAmDmo7PLSVZXHMtuOsduvG0i/5bPkk4UBJJbr+Qaw0k/gCt9DXPKATMdnw== X-Google-Smtp-Source: AGHT+IEjje1Xd8KLko3CKqO91PhJLaHmZsjYcdrgd/Dze3dScGK/oFqnTatDgXe8k7xKjRgojwKJ X-Received: by 2002:a17:906:fad0:b0:a38:4f2b:8591 with SMTP id lu16-20020a170906fad000b00a384f2b8591mr6905787ejb.69.1707812542450; Tue, 13 Feb 2024 00:22:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707812542; cv=pass; d=google.com; s=arc-20160816; b=XlJ5KsVXkk07eR6io4fWsXLRdEuj5hdVrrr6EMHmoGaVT6oZwuyJw5vHzVnE9KDKYN aZEbDTp78E+hgFtvl3ljGAD//H3vUn4WquoYY9N5GFB0Gu+5VVizaM0w5uEPVsYGT5cv /Bktt0kV9Gu2HiJR1hJkPlCxGUqoYstus/eEOghz+8SdtaYkWBpAmM++kT9qyFLJ11nl eO2jTt9RI6kYOliIX/XzPu9D41R3n1z218aMUF5u0ynu/Ut0ARVeyDZ8dU3ITIJSQ3UX XFOtgNsFs8KXupOap4sHecustebdVCtOUArYacRmxotjKmtbmaYaWax6iKrpkJBuwMrM g/xg== 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=tP9U4WVHKg76vR7mUi19VCVh+QzhgevyK2/XdTYMSMk=; fh=BOwNOY+20jxPijdS2vBT7zO83KFPuSWDtQzxQE9GSdY=; b=ERHCoZ3DIlA8LOKcE/a6OxTyRQWCTwOXNeGmhhcI1IIXU0+eF+tmt7jLj9fppYq3SR YzpDqxRM3qvWGXBh+jzMf7wPJPNQGEPqIjSKN/sEu0ZiyAXuHvPlynl7MheoOWkEUeh1 ydwbp1sV50dp9JFZDbKqhS2+cVXN2pP+PDAU32slsuzYV0ZiJMVJIg4E1FkuMYrxoiK+ Xk1ZuZl601dj6LXX0CLXnoC1exFzT3LyItoAFjI9SBQMY5J31ny9kSYSVjq+8HLzDGkq 6U2swz/m9QmtnMi0QgQRWyaRpOuIsBLW5HqDqFmpciiQ68kZ9F8gwaP+vnhBLtfiDZSK BJkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pvGFJWeB; 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-63097-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63097-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCULTpvoiHb30Tfnj5SsOWOz9JS2/88Vihk3ay3r7IfyolD8K2GbGeKYbkrjM+57MzRBP3ddTsUwA6ZnoYwFf6OMUVAtTA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x24-20020a1709065ad800b00a388f94bbcfsi931785ejs.657.2024.02.13.00.22.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 00:22:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63097-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=pvGFJWeB; 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-63097-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63097-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 DE9E51F2212E for ; Tue, 13 Feb 2024 08:22:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8E9221A04; Tue, 13 Feb 2024 08:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="pvGFJWeB" Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (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 A6FCA225D2 for ; Tue, 13 Feb 2024 08:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707812450; cv=none; b=JqEpDvsQ/55BiS2VM9NIzo59/6UPFNhWk+MHnh9t4NjPi5AlDaFmvUjGj/y/Vey+a/OQVui7v9Wb0wfj/tP3mkKYhzF6gMxdrELwTI08dMzasuQg/pK3GIvP9AIN71gAkYm0YMnpKILfWSayZo2TUcX01fx3xhtEKnD+LfvPs0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707812450; c=relaxed/simple; bh=T83TRgd0Cjf5ynLdLQ0SWNVs+GGT60Q/tSZKRDeff98=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=e/xvAapWN/Pl9hTucODS2+yOEluTmK0m/X0IO5XdYIrW9/kh7xcBZpXK6CTZg/w2Umi4VdcZdibXJlZoXgEtrf1Z9HrVkFs43+07JZO4hGexkPtS3rFA19i+A6KB96TI3cpO/uta91hsuAvWRQ/6RXMWkdsf96OFiW8zOWB5dr0= 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=pvGFJWeB; arc=none smtp.client-ip=203.254.224.25 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 epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20240213082046epoutp02af24bd713c9b94f1490cfcb2ed34e651~zXl8qjHJf0996709967epoutp02W for ; Tue, 13 Feb 2024 08:20:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20240213082046epoutp02af24bd713c9b94f1490cfcb2ed34e651~zXl8qjHJf0996709967epoutp02W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707812446; bh=tP9U4WVHKg76vR7mUi19VCVh+QzhgevyK2/XdTYMSMk=; h=From:To:Cc:Subject:Date:References:From; b=pvGFJWeBVVk02TIDmRM+Jiu4VI3h0nJDZK9jYNHOhr3WQTdmvSazZtN47/eP9iF2y txOEF0cS0hNvhjBo/8g6L/xtE6zJsabH/qm2MRjqqi4GShGSe0BX227NhWmzbLXWrg 5ehKL4DjZQUdNxU8utBp3u6HAxHOsObpYT16KTY4= Received: from epsmges5p1new.samsung.com (unknown [182.195.42.73]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20240213082045epcas5p1532ea50b9e7d9d32b141088ae8e36953~zXl8CS_iD2381423814epcas5p1V; Tue, 13 Feb 2024 08:20:45 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 05.E3.09634.D562BC56; Tue, 13 Feb 2024 17:20:45 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20240213074430epcas5p4c520bf2cce121cf5fa970eed429231a8~zXGR3T-aL0248002480epcas5p4o; Tue, 13 Feb 2024 07:44:30 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240213074430epsmtrp18dab30bc2dd3525cec43a89f50c1a5b6~zXGR0nU2X1967419674epsmtrp1X; Tue, 13 Feb 2024 07:44:30 +0000 (GMT) X-AuditID: b6c32a49-eebff700000025a2-0c-65cb265d3e08 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D8.B1.08755.EDD1BC56; Tue, 13 Feb 2024 16:44:30 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240213074426epsmtip2c1e6479e8e49708f262c952e3296c5d6~zXGOAdNaV1017610176epsmtip2Z; Tue, 13 Feb 2024 07:44:25 +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 v3 1/2] ACPI: use %pe for better readability of errors while printing Date: Tue, 13 Feb 2024 13:14:15 +0530 Message-Id: <20240213074416.2169929-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+NgFnrPKsWRmVeSWpSXmKPExsWy7bCmpm6s2ulUg5WLdS2WNGVYXHp8lc1i +stGFounE7YyW7w6s5bN4m7/VBaLnQ/fslks39fPaHF51xw2i7PzjrNZfO49wmhxeH4bi8Xk d88YLS4dWMBksaLnA6vF8d4DTBYb72VbzP0yldliX8cDJouPezYwWnQc+cZssfGrh8XWo9/Z HcQ91sxbw+jRsu8Wu8eCTaUem1doeWxa1cnmcefaHjaPeScDPd7vu8rm0bdlFaPH5tPVHp83 yQVwR3HZpKTmZJalFunbJXBlbLvewFTwQLDiYdMn1gbGFv4uRk4OCQETiYa1z9hAbCGB3YwS pzbFdjFyAdmfGCWeXX/BBuF8Y5RoeH+AHabj16y9TBAdexkltm3JgCj6wigx8eMTFpAEm4CW xIw7B5hAEiICW5gkllw6yA7iMAvMZpJY9+07WJWwQLjEkpUTwGwWAVWJ3jVXwcbyCthJ7Fs8 DWqdvMTMS9/ZIeKCEidnQmxgBoo3b53NDDJUQuANh0TfznnMEA0uEiv/TmSEsIUlXh3fAjVI SuJlfxuUnS/RMnsWUD0HkF0jcfWpKkTYXuLJxYWsIGFmAU2J9bv0IcKyElNPrWOCWMsn0fv7 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QKvH1+AcWEJtFQFWid81VJhCbV8BOYt/iaVAr5CVmXvrODhEXlDg5 8wlYPTNQvHnrbOYJjHyzkKRmIUktYGRaxSiZWlCcm55bbFhgmJdarlecmFtcmpeul5yfu4kR HHlamjsYt6/6oHeIkYmD8RCjBAezkgjvpRknUoV4UxIrq1KL8uOLSnNSiw8xSnOwKInzir/o TRESSE8sSc1OTS1ILYLJMnFwSjUwZU25Z3BOoaygeWmLvFyr0SXmU6uXzzFKsnmgtUXq3cUt Dzdz/nu/LTlla3na42tqa8+p33pg9WHWU3e9BwXVpenz0hS6l7K+/XNw/uUeAU8PuVNnZCJ7 zl3h2HLv8aw1XIwXg6UvRdcyl2e+b5P7d/3yhOyvXzb/LdnQUvpgXtmBSb+VdmZvvrDcR4vP c9mHf2y7NIwV22TWZvgVPj5/RWdNuJbw3ymONzh/+06Nu5nGtv3+3OiXU++3qt04bbFnS+wW Xa5mpj2VLvqnWO2Njmxybuus+/NH5d/2mYZKuy/VmFdnG+15Jrt/8+HHSR8Ult4JCUi/2S69 bN7klWvS86s6xIvEvq5/v3PxT00eDx4lluKMREMt5qLiRAAGccV1KwMAAA== X-CMS-MailID: 20240213074430epcas5p4c520bf2cce121cf5fa970eed429231a8 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240213074430epcas5p4c520bf2cce121cf5fa970eed429231a8 References: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790771244038818312 X-GMAIL-MSGID: 1790771244038818312 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 --- v1 -> v2: Updated subject line as per file history & corrected spellings in description. v2 -> v3: Updated Reviewed-by tag. 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 Tue Feb 13 07:44:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnath X-Patchwork-Id: 200268 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp395036dyb; Tue, 13 Feb 2024 00:22:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0B9UR34J4pxDlt/oIzI4g30LkV1jaWugI/Ek5pWUELd3zDpy/KrQv/+Vq0iM6NmnlwVg7TpFbwZS1H/oBMAy19TG6kQ== X-Google-Smtp-Source: AGHT+IGFynBHG18Sp6R6OFEUbqP+Ohx3a4o/EFeDUI4NaOwIrqzyEGYJwWkVO5VFQMtkdG+zaLSA X-Received: by 2002:a17:90b:147:b0:295:b440:9751 with SMTP id em7-20020a17090b014700b00295b4409751mr5538936pjb.44.1707812562006; Tue, 13 Feb 2024 00:22:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707812561; cv=pass; d=google.com; s=arc-20160816; b=IlaiWzMq/tRY9AdnMnEJWkMp+oLtEDedldwVvP/89ML+UkPsRbilEJ2pJw73NrzOc+ eKLHXKbLeNbYj56HINN2NrJVQdXjkqLuQzmEv+aaX7aeNBqyjxnMxIREDu704YU0/Kfy QYyeApLOqMoU5/FKR6Ma0NvqKV1XURHZOJcH4DWDvn+ugfKwrj5u5WmW0BOCcMng0p/M 7ERdsE70sGvMvlho+CJaDRmn6vOAePyKEDeURPM9Pa4pDuO/0ua9/bAI/niJ8iwN3vG3 jd7xEqqwwZjeCO/e0LTZD4kxjCDS0GsDaJ+CyhGW5TW37ouPZWTk/ZY3mzS7zvQk43Tf we8g== 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=92Ux7FtbDU/8AIHbTeinFsj9GB+AdwJ5W6wN/FBK/xQ=; fh=DT8cJK3CUO/Li/Kbpbaut51fnLu7JoKUuj11Wd/TKSY=; b=MKNK5Den/nEVoI3agVjRKvgg1MGM+0JqtTl8Ydm2TMp2ITqmWmqBdprIrvHjNJMjjP 9JlbjNeBW4SHbiJtD897m254AqSjJOga610/Sb0mNcPRmJFZQSOFjocMdVSl7we1ccQv pBIprL63tE9iN/+VlxoZQnaoSw3dlVNg9Jl6iMZRvdiH4r7kwUh3Y5LYjLUViiqxRf2P D4jEw877eVVvZN1GFFqazUgS7t/1QxwD3llOdMMrpnRso/hdV/UeABBkEXtyw7V4FrKq u3KJRoy7lTTcRKdT+vHAxfry0CqXPOhwvtZz1DPlTAbk/FxpPo38HrlooJyTQPuwE+0c cE8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=e3Frrq6E; 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-63098-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63098-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCUIJ0wW2ueXDdTtExDCAyHHq+rfvzDoLoD3xMHKZpVEVafBVOE1h1lZt75MwG+lvDmA1rcpsgffy39BomEfziCu1wo+Xg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p2-20020a17090a2d8200b00296eaee72d4si1674709pjd.137.2024.02.13.00.22.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 00:22:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63098-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=e3Frrq6E; 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-63098-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63098-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BF12328268D for ; Tue, 13 Feb 2024 08:22:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AF952260B; Tue, 13 Feb 2024 08:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="e3Frrq6E" 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 6444B225D5 for ; Tue, 13 Feb 2024 08:21:07 +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=1707812469; cv=none; b=LFBD3f9B2GC7qOMq2Qn5VuJ++wPc5dD+O4DYTHk1B9yaLJzkyxOH4/+4PXx07K8JKIBepusAYvo5N+GKY+v35rUhoIa19WmLZwmjE3YPnWqUmOgVO60ymuZReF/jiB6PhiiQF2mExPm3/4QQzy41x9nO8fqzgUZPliCf5hKlsDc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707812469; c=relaxed/simple; bh=cFeJ49ozuDHgvVdgMByqtpMP0RchPUnBC6gtca+4OqM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=b7ZZvxuAhHayT69SI8zuphEXlcOJPBa7bsQCFha5buYrscUUUFbaV8LtVJ2d0W52BmoECMeCm6VO3qxppEjf8YTIv9C2vS7RYrCEasNhVXkPN8vjo6tjg28JkhgJ47qZiwHf8Ji88nXN/gTuzuzQyNqL+Hk/hWssHiTDZW0nZw8= 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=e3Frrq6E; 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 epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240213082105epoutp04d0562c2f2548fda4ea30a24d1273f789~zXmOR7rWC0365903659epoutp04E for ; Tue, 13 Feb 2024 08:21:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240213082105epoutp04d0562c2f2548fda4ea30a24d1273f789~zXmOR7rWC0365903659epoutp04E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707812465; bh=92Ux7FtbDU/8AIHbTeinFsj9GB+AdwJ5W6wN/FBK/xQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e3Frrq6Eh2ga+UxktN6l6QBQuOO0iP1rTsreMaEmLeVl+pDn6FCRYAC/ySUZmlPtz AA7rglbyUiGY8sWXEKOR4FMDgHmHZq/0NYew+4Z/khDBMQ4gTAxoLjuVolLcwYkDLJ YDoNCTkDJO/w9rPZqoo4xHx5FFEpO010zNnWPfWY= Received: from epsmges5p1new.samsung.com (unknown [182.195.42.73]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20240213082104epcas5p3a08eac06f25b1f052c54e4fa1f8ca47c~zXmNoDO281141011410epcas5p3Z; Tue, 13 Feb 2024 08:21:04 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id ED.E3.09634.0762BC56; Tue, 13 Feb 2024 17:21:04 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20240213074436epcas5p4757b38265bea29c3bb6f1e0aa90f602a~zXGYB3Tj_0248002480epcas5p43; Tue, 13 Feb 2024 07:44:36 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240213074436epsmtrp145ceff6af741c1bfddf992dff802ea0f~zXGYAoL9r1967419674epsmtrp1c; Tue, 13 Feb 2024 07:44:36 +0000 (GMT) X-AuditID: b6c32a49-eebff700000025a2-32-65cb26702eba Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 86.94.08817.4ED1BC56; Tue, 13 Feb 2024 16:44:36 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240213074432epsmtip2e975d3ca0a810946d70ecb4ffe1ff68e~zXGUKwsyY1391213912epsmtip2C; Tue, 13 Feb 2024 07:44:32 +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 v3 2/2] cpufreq/schedutil: print errors with %pe for better readability of logs Date: Tue, 13 Feb 2024 13:14:16 +0530 Message-Id: <20240213074416.2169929-2-onkarnath.1@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240213074416.2169929-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+NgFvrLKsWRmVeSWpSXmKPExsWy7bCmlm6B2ulUg7dTNS2WNGVYXHp8lc1i +stGFounE7YyW7w6s5bN4m7/VBaLnQ/fslks39fPaHF51xw2i7PzjrNZfO49wmhxeH4bi8Xk d88YLS4dWMBksaLnA6vF8d4DTBYb72VbzP0yldliX8cDJouPezYwWnQc+cZssfGrh8XWo9/Z HcQ91sxbw+jRsu8Wu8eCTaUem1doeWxa1cnmcefaHjaPeScDPd7vu8rm0bdlFaPH5tPVHp83 yQVwR3HZpKTmZJalFunbJXBlHNvzjrngEkfFkwXX2BoYl7B3MXJySAiYSBzvP8UCYgsJ7GaU uLVSrouRC8j+xChxtLWHCcL5xigx51QnK0zHjqk/2CESexklLvyYyAbhfGGU2HP5EFgVm4CW xIw7B8DaRQS2MEksuXQQrIVZYDaTxLpv38E2CgskSvzacQfsEhYBVYmHLZ/ZQGxeATuJW42L WSD2yUvMvPQdrIZTwF5iT8sDFogaQYmTM5+A2cxANc1bZzODLJAQaOaUePXwD1Szi8TXxasZ IWxhiVfHt0C9LSXxsr8Nys6XaJk9C6iZA8iukbj6VBUibC/x5OJCVpAws4CmxPpd+hBhWYmp p9YxQazlk+j9/YQJIs4rsWMejK0q8WvKVKgLpCXu/57LBmF7SCx5dBEappOAAbzrJMsERoVZ SN6ZheSdWQirFzAyr2KUTC0ozk1PLTYtMMxLLdcrTswtLs1L10vOz93ECE6hWp47GO8++KB3 iJGJg/EQowQHs5II76UZJ1KFeFMSK6tSi/Lji0p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040SqEG9KYmVValF+ fFFpTmrxIUZpDhYlcd5vr3tThATSE0tSs1NTC1KLYLJMHJxSDUzW/EytRU6esp/iv7gs5H60 4dW5WW2ea+bIHPg+7VH45XDDzVbr5vTda9vzmn3+2Z82n7/EVHbMfJ5rfen3pAs8R93fS8k0 xrt/99mmf+gfI0taWk7+72nuzj27lwWzP2JySVtWePNXr1NDyJkz3qxfTojrrnng4PMjh3ny ojxpJ+f/2X2HLB8fSPHLvVBv19RftdjZ519fzCv2hVO3zH0TpPJPY8eDRxHr0mYWHE6QsYq6 msPdX1zbdN70gATnYacTKtPPne7n8vzcEHl/3v9XjxazT4/hvhDixjpd+DNzpNjSl46ZIkry PzkSG7xnesZMEhM9UVMRySh24XX7MjuvyCndqW/O+H+/fVdc9pkSS3FGoqEWc1FxIgDDbtDE QgMAAA== X-CMS-MailID: 20240213074436epcas5p4757b38265bea29c3bb6f1e0aa90f602a X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240213074436epcas5p4757b38265bea29c3bb6f1e0aa90f602a References: <20240213074416.2169929-1-onkarnath.1@samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790771265193809424 X-GMAIL-MSGID: 1790771265193809424 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. v2 -> v3: No change in this patch, change done in PATCH v3 1/2. 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); }