From patchwork Tue Feb 6 05:11:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnath X-Patchwork-Id: 197199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1338162dyb; Mon, 5 Feb 2024 21:41:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzXFpArB2y8wVgwK6xd6q5+kxRXySrfM9Y61Zj2W+z4PQb6ssQoVT9foBgyw2qx4AgIBIj X-Received: by 2002:a25:d387:0:b0:dbf:164a:e3b2 with SMTP id e129-20020a25d387000000b00dbf164ae3b2mr609814ybf.33.1707198095229; Mon, 05 Feb 2024 21:41:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707198095; cv=pass; d=google.com; s=arc-20160816; b=uc5i1X2PfZ9R0DccCZ0acw7R1lCoDobq4RY8A5hBVNnI1UQEi24arveiVGGaCEilqW 3KedeBcPk3xu3XuXInL0YNcMmryxzLo0LS4wKSxAsMAr0EM0cMUgwcHOlnwlz3lmvvhi sMpHdopo6EeC9wrhelHyUSM1OCbKZ27rMLND+v9LaQod/KklrkdooQcoYBoJnLw2GaVo BLaq8F918NELbb2UIGXycDxvNQHFXumIHNxLIh9AtE367PN9r4/FTRz7Z+/xFI7gQqHJ Ix4J+LYPWbNUCIODHRZN/vYxQxDD/Czjl9bRTlqURtRKOWkDFQp5Ci7xZYcMfRUe7+vc FaLQ== 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=aBBrxem7ddlekW/Lr8VprMBnc1yCIETVUD5Mt9UJ6mI=; fh=P4r8tr1y+O6AzyszXIN50fQtw4k3r4zjqmt+F3J/h1U=; b=W8ncuMvPD4ONcRd7y2qIKT3lhB01F9hW7fts3raxLIgKISlwrmhaEXnci19x1ySdp5 W8cTWnNyNmSMZeMMMhDc69zMCjE6KSuf8McZdAazBTjB+fMa51gfI4U9oBjS98VPOaMS ngE+lw/HIxU5ElCBnctzcvxEdFDrVImTISr6WZ49IIW4Wv7hFvyJmXVcJSsqcBLuN0mf ecWlN/67FZo2hqhWKDp43D315bqIXG9X6WKuaUYWPk4Sw+7tQS20Ivw1cJGiSWrbqLD7 uULqj5hU9IcvaVWCpwvjRlnbySDrBfOYFqGtlKoJCJWP2EQymIxFSBoB5IkiYTh5GsrC 6WFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=eSLvK2AX; 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-54356-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54356-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=1; AJvYcCULNnbpVKWQmmnf2SVyngfFxonqzBTVbDTlezXHKEQ7pK4f0KyC5OoUMyfbG/OyEec4ma9ZGG2Jm0lW4adBClHxFhAv5Q== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d8-20020a634f08000000b005d24ebc7f36si1118355pgb.406.2024.02.05.21.41.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 21:41:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54356-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=eSLvK2AX; 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-54356-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54356-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 56ABDB239B3 for ; Tue, 6 Feb 2024 05:41:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 684BB7F7D0; Tue, 6 Feb 2024 05:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="eSLvK2AX" Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 A867D7F464 for ; Tue, 6 Feb 2024 05:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707198053; cv=none; b=GbB91Ip6d9wb3EceF02FPBdbdLa9nltImikNbGgfYomqiq8udsWXMvs1dDM3P8qF9IcjMqL85t3ZqofR/GEleFhEM8MbVtnHTPWG8wQ0mOLNpKoadSGJbIiNneCRGrLZp/VcVaEYMnPJnf3wXhzIasjetnV1ihQHyI84Q8rT8kg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707198053; c=relaxed/simple; bh=12JV3s2dxhUtF8cvsihJ6B9DhYtAGxdVgGWKspDgLfM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=X3UGaYR+YHWKQ67U5Tv2pKSuxuojKG/7mADMJk8IfaPgtp/48HFt060+vFcNKPsTCmUD93xh9bArWYDHyepFpFbCimSG/QXa9xzLLhQ9LWdjD/LE1kH5FDzxdFlx3SMrxq/+nvUNWQQgjC+RZ3yEMeinPu0f2K9LUWk/WcekSqs= 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=eSLvK2AX; arc=none smtp.client-ip=203.254.224.33 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 mailout3.samsung.com (KnoxPortal) with ESMTP id 20240206054042epoutp03beccb0e0a29e2764b7aea4eed15b5661~xL5MXUYA22587225872epoutp03r for ; Tue, 6 Feb 2024 05:40:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240206054042epoutp03beccb0e0a29e2764b7aea4eed15b5661~xL5MXUYA22587225872epoutp03r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707198042; bh=aBBrxem7ddlekW/Lr8VprMBnc1yCIETVUD5Mt9UJ6mI=; h=From:To:Cc:Subject:Date:References:From; b=eSLvK2AXHTEnJcbkVSWa0FX5QO38bMKeHya4eQ/S0A7k/w9PKjNHI+yZGefJONLAc BTcJQNuDG5iSB9/86APECX7qLQS52aQ01smt/32zD+MIUUMKmyjaBE9226g1PKl2V6 v9bwv1NGXqJYaWKBY9aGDU3qrFreb9acDmz6J++c= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20240206054041epcas5p129aa02776cb689022cfa956bb540b871~xL5LyoY621405414054epcas5p1D; Tue, 6 Feb 2024 05:40:41 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 3E.04.10009.956C1C56; Tue, 6 Feb 2024 14:40:41 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20240206051218epcas5p3fddd971ec73f6ee6a2b0a5ec2709c0f7~xLgZNqanZ1031110311epcas5p31; Tue, 6 Feb 2024 05:12:18 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240206051218epsmtrp190e9b1ff2b400c54052add3c10ffcfd4~xLgZMtrm01605616056epsmtrp1b; Tue, 6 Feb 2024 05:12:18 +0000 (GMT) X-AuditID: b6c32a4a-ff1ff70000002719-e9-65c1c659c701 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 65.60.08817.2BFB1C56; Tue, 6 Feb 2024 14:12:18 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240206051212epsmtip225e82b14faef9cafd015458eb690d8a8~xLgTgNi6z1683216832epsmtip2s; Tue, 6 Feb 2024 05:12:11 +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, Onkarnath Subject: [PATCH 1/2] drivers: acpi: use %pe for better readability of errors while printing Date: Tue, 6 Feb 2024 10:41:19 +0530 Message-Id: <20240206051120.4173475-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+NgFnrAKsWRmVeSWpSXmKPExsWy7bCmlm7ksYOpBitOGlssacqwuPT4KpvF 9JeNLBZPJ2xltrjbP5XFYufDt2wWy/f1M1pc3jWHzeLsvONsFp97jzBaHJ7fxmIx+d0zRotL BxYwWazo+cBqcbz3AJPFxnvZFnO/TGW22NfxgMmi48g3ZouNXz0sth79zu4g6rFm3hpGj5Z9 t9g9Fmwq9di8Qstj06pONo871/awebzfd5XNo2/LKkaPzaerPT5vkgvgiuKySUnNySxLLdK3 S+DK6Pv8lLFghkBFZ8sO5gbGO7xdjJwcEgImEs/77zJ3MXJxCAnsZpS4u2UNM0hCSOATo8T2 eSoQiW+MEn8nHmSD6dg3bwM7RGIvo8TVvR3sEB1fGCXe7NcFsdkEtCRm3DnABFIkIrCFSWLJ pYNgHcwC5xglbkzewtrFyMEhLBArcbuzFKSBRUBVovPdJFYQm1fATmLjj3OsENvkJWZe+s4O EReUODnzCQuIzQwUb946G+xuCYEbHBL3Zixjh2hwkXjW2cACYQtLvDq+BSouJfGyvw3Kzpdo mT2LGeQGCYEaiatPVSHC9hJPLi4EO41ZQFNi/S59iLCsxNRT65gg1vJJ9P5+wgQR55XYMQ/G VpX4NWUq1FZpifu/50IDy0Pi3dI+aIjGSty4uI5xAqP8LCTfzELyzSyEzQsYmVcxSqYWFOem pxabFhjlpZbrFSfmFpfmpesl5+duYgQnQi2vHYwPH3zQO8TIxMF4iFGCg1lJhNdsx4FUId6U xMqq1KL8+KLSnNTiQ4zSHCxK4ryvW+emCAmkJ5akZqemFqQWwW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8/dWfjs+yqtiovaz1SfXtDyWHJAiS9Mt47p yJfvnj+m5Z4vMHQr2Z0/O/ND7GJhZW3Bi89YvbzN/1U3TG0TbdZ/zKe79cEzl7ctYbPWnVsl vMTf+V+5gda5xLtaG/wUM64tvuBhef3rFqvOa01nf23PFV058dajf6UHd3VLN3098XHlC79d jB4fK5UUPBZMidY8P/Xr9zIRzp8pBd8NLc8aBHbm9SqYHDTbHXO0RLJqD2f87LmGK+4Wp+mI yN8uXRAaXqnyb17+581rDpxseZ9RK37k5Y4VMt1r/kiLy3c9/LB2Rve73ZN1XsXfzTE4/0Dn mG5zIZtoi4sSS3FGoqEWc1FxIgAp3TP+HQMAAA== X-CMS-MailID: 20240206051218epcas5p3fddd971ec73f6ee6a2b0a5ec2709c0f7 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240206051218epcas5p3fddd971ec73f6ee6a2b0a5ec2709c0f7 References: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790126949841344848 X-GMAIL-MSGID: 1790126949841344848 From: Onkarnath As %pe is already introduced, its better to use it inplace of (%ld) for printing errors in logs. It would enhance redability of logs. Signed-off-by: Maninder Singh Signed-off-by: Onkarnath Reviewed-by: Stanislaw Gruszka --- 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 6 05:11:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnath X-Patchwork-Id: 197198 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1338141dyb; Mon, 5 Feb 2024 21:41:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZ/wxHQIfmN97qRb+6owkPY1o/6JED5O78gfoT5/fa8hBz6lzLc1Dmw97Yd484/6RlSDZh X-Received: by 2002:a05:6214:29e9:b0:68c:aac2:3020 with SMTP id jv9-20020a05621429e900b0068caac23020mr1908149qvb.1.1707198094033; Mon, 05 Feb 2024 21:41:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707198094; cv=pass; d=google.com; s=arc-20160816; b=U2lnQrlGD/LlGskKb3gtitcTY8LVZsUiT5ucK+xwXhbSEE5du4HVilYlGIf3Sm7fGQ KfOKTzq2h8bC8vSBn91sWQZ5VHbPCRBMqlK5AFewVL6IrUqJqwWZG9psbdrESx7raEod xkxTQ7sA1DkstiW5GNDW54lFCDuQc3z5dU+5p3kvjNNgNM83G0B5VubIQg6LrtZQqgxr 7nGHhakTgQX8r0FwHq7VzOesL9ZBz124MuhCTrYNgzcwoppao+BRdNAEypafiv7gXYFJ i3MJcZqm4A3laSPNhW28GChpwORGK8YEp2G4SOM3ENhgGIRMM9kZyAhe08c917c4wU9u YdMA== 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=CC2djjTAEnwzIDHn32zkRPNrPPr+7uiinCUTrzq6knI=; fh=voM8Vu3UiPpQgMT6uHUPEcYlsVzJYBUGY1/B09ANn34=; b=Xy4ZO9SqgSrW+IiUB0ZuUGBn0f/RkEP6gOV+r5nAMmj1Otsr8nGVjbS/gZ3+uWhCgt sTIsQxil6VPkL2mFdHhjXXNEIsk+R13t3o+1we7YylLP1T50A9wPynUvr2veSNvcLbT2 h28H4m5gtohyEuGcyJ161jpLUQLEaFi/8h6j87pMDNhh5NTlUY4QwROCZYegNSRMFMA7 6+e1pAWDCYfJ5YVC8yRJF8qjzHJLFqMkYd879BaX6JIjVIoUmsozm2gJUil8vUbuo9oW YX/2/VBKkTvQFXm5Ly54UaNsMvgX5JgzvVp58unGRh1zVyZaeD2MXoaIbWsLx0ktPxFP VxMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fqmBHa2e; 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-54357-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54357-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=1; AJvYcCUF4UkV1wWpgLvg0ivHvl0stnAkjtbSRveIWLQBXF2MiyHAIg747B7dpzrNoVH26WK9Yrv67CXbdu9HzvT0WfNPwVGFmg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dd12-20020ad4580c000000b0068c4f264e8asi1670610qvb.175.2024.02.05.21.41.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 21:41:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54357-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fqmBHa2e; 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-54357-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54357-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B7B281C23799 for ; Tue, 6 Feb 2024 05:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50B217F7E8; Tue, 6 Feb 2024 05:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="fqmBHa2e" Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 39ADA7F481 for ; Tue, 6 Feb 2024 05:40:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707198056; cv=none; b=h7jZ5UDftcC2b869xPtMbNHMteHSszRJjIdlqE9D6iQhE3LC26fgNtcrk/RifRZ3IPB0sxhPLtdqNvAso7k8B9a9t3LATJ8FquolPlKWtP+5luoTiZebO2T0QSp5UppzhwVL58Hm+mjTp9EU2AsqMFH9/1zhsQ5f6pgwSIirvUw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707198056; c=relaxed/simple; bh=7kqaAO5rz0MEVvOXWXpuWW96op5KATV3atJvwKX3jyE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=MKm8h7hDD1PP1HEFT3mGvsCBPn+z3zLEXCI0MBgefn8oVn4oqhu5CX1oE1+QB56FAEpy/vf9bx8oBpACq5w2f7TZBSVU8APRcKS6LAMXu+s5Vnp+pXyxbUm0nvwvcGb5FjeFqL86kW0EgxfjYqoZbApBV90x3QNR4p5bMgHq6/w= 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=fqmBHa2e; arc=none smtp.client-ip=203.254.224.33 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 mailout3.samsung.com (KnoxPortal) with ESMTP id 20240206054046epoutp0329a739335f61796a2a1b6ab9bca4040d~xL5QZ9Ngh2568425684epoutp03E for ; Tue, 6 Feb 2024 05:40:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240206054046epoutp0329a739335f61796a2a1b6ab9bca4040d~xL5QZ9Ngh2568425684epoutp03E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707198046; bh=CC2djjTAEnwzIDHn32zkRPNrPPr+7uiinCUTrzq6knI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fqmBHa2eqPQRK4hP6YyVGHLO8kfqovIkqZwKXQS4Qi4IXt7WubXGGwtAW9kBBV9T2 kE+zxwWgJl9+78nxH38ZZnowFuI77aIeduDJJZ/22eTOXp4DNqxW/cOgPC34P9IXkS uW0ZvCCTYCV5xGmEh1VKTO4kYujDwsh0rfTF9WvA= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20240206054046epcas5p17a49d75ee048c41f92d09fea50eae215~xL5PwKSX-1405414054epcas5p1M; Tue, 6 Feb 2024 05:40:46 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C1.14.10009.E56C1C56; Tue, 6 Feb 2024 14:40:46 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20240206051402epcas5p2ae3737fc0d71ba1d7a7f8bee90438ff2~xLh6J0uhi2514425144epcas5p2j; Tue, 6 Feb 2024 05:14:02 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240206051402epsmtrp1e846e1dc8329b4db9a0c630751b964a5~xLh6IkgN_1680416804epsmtrp1G; Tue, 6 Feb 2024 05:14:02 +0000 (GMT) X-AuditID: b6c32a4a-261fd70000002719-f4-65c1c65e2b6f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id 67.64.18939.A10C1C56; Tue, 6 Feb 2024 14:14:02 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240206051358epsmtip2d28793c007873284be3cf44a8dffc8e0~xLh2oJEDX1683016830epsmtip2E; Tue, 6 Feb 2024 05:13:58 +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, Onkarnath Subject: [PATCH 2/2] kernel: sched: print errors with %pe for better readability of logs Date: Tue, 6 Feb 2024 10:41:20 +0530 Message-Id: <20240206051120.4173475-2-onkarnath.1@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240206051120.4173475-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+NgFnrFKsWRmVeSWpSXmKPExsWy7bCmum7csYOpBie6OSyWNGVYXHp8lc1i +stGFounE7YyW9ztn8pisfPhWzaL5fv6GS0u75rDZnF23nE2i8+9RxgtDs9vY7GY/O4Zo8Wl AwuYLFb0fGC1ON57gMli471si7lfpjJb7Ot4wGTRceQbs8XGrx4WW49+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7a7f8bee90438ff2 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240206051402epcas5p2ae3737fc0d71ba1d7a7f8bee90438ff2 References: <20240206051120.4173475-1-onkarnath.1@samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790126948648803372 X-GMAIL-MSGID: 1790126948648803372 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 --- 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); }