[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <177011751378.2495410.4471143953201920684.tip-bot2@tip-bot2>
Date: Tue, 03 Feb 2026 11:18:33 -0000
From: "tip-bot2 for zenghongling" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: zenghongling <zenghongling@...inos.cn>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject:
[tip: sched/core] sched/cpufreq: Use %pe format for PTR_ERR() printing
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 742fe830b7d9c01b5c36add9f664a5267caca4f5
Gitweb: https://git.kernel.org/tip/742fe830b7d9c01b5c36add9f664a5267caca4f5
Author: zenghongling <zenghongling@...inos.cn>
AuthorDate: Tue, 20 Jan 2026 16:33:33 +08:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Tue, 03 Feb 2026 12:04:19 +01:00
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>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Link: https://patch.msgid.link/20260120083333.148385-1-zenghongling@kylinos.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 0ab5f9d..cfc4018 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);
}
Powered by blists - more mailing lists