[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20260120083333.148385-1-zenghongling@kylinos.cn>
Date: Tue, 20 Jan 2026 16:33:33 +0800
From: zenghongling <zenghongling@...inos.cn>
To: rafael@...nel.org,
viresh.kumar@...aro.org,
mingo@...hat.com,
peterz@...radead.org,
juri.lelli@...hat.com,
dietmar.eggemann@....com,
bsegall@...gle.com,
vschneid@...hat.com,
rostedt@...dmis.org,
mgorman@...e.de
Cc: linux-kernel@...r.kernel.org,
zhongling0719@....com,
zenghongling <zenghongling@...inos.cn>
Subject: [PATCH] sched/cpufreq: Use %pe format for PTR_ERR() printing
Use %pe format specifier for printing PTR_ERR() error values
to make error messages more readable.
Found by Coccinelle:
./cpufreq_schedutil.c:685:49-56: WARNING: Consider using %pe to print PTR_ERR()
Signed-off-by: zenghongling <zenghongling@...inos.cn>
---
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 0ab5f9d4bc59..cfc40181f66e 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq_schedutil.c
@@ -682,7 +682,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);
}
--
2.25.1
Powered by blists - more mailing lists