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: Onkarnarth X-Patchwork-Id: 13546688 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 6B5A86E2D0 for ; Tue, 6 Feb 2024 05:40:54 +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=1707198056; cv=none; b=cwdodyG5XKZ3YHF8AdQv+sTnFPcQp0dtNVvN2Q4qdTXQIJx+vS8f+HSuYjNUf+AQChHEyIQPAeMQOpP6Pf6DLu3N9/38WQ7Y3fVT6dJAUoEUOfRCfAWw9Rqp9mRMF7Nl1BD6mYa/sa0It2RrEfbRvW7soQ9DrW2IvplcOh6sReg= 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.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="fqmBHa2e" Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240206054046epoutp04085ecdc6ff64a128df65992d8c78e4c6~xL5QaDEQT0957909579epoutp04F for ; Tue, 6 Feb 2024 05:40:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240206054046epoutp04085ecdc6ff64a128df65992d8c78e4c6~xL5QaDEQT0957909579epoutp04F 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-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFKsWRmVeSWpSXmKPExsWy7bCmum7csYOpBie6OSy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VktfEWxn9f7b/vXQGuZnW//GHFpeUt+m9LdVPqaraErArEXr89bEP995 4da3xvT+r39FBOLeLp/x+kOnEktxRqKhFnNRcSIANHpWqC4DAAA= X-CMS-MailID: 20240206051402epcas5p2ae3737fc0d71ba1d7a7f8bee90438ff2 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240206051402epcas5p2ae3737fc0d71ba1d7a7f8bee90438ff2 References: <20240206051120.4173475-1-onkarnath.1@samsung.com> 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); }