Re: [PATCH 3/5] cpufreq: Use %pe to print error pointers symbolically

From: Viresh Kumar

Date: Mon Sep 07 2026 - 00:39:41 EST


On 06-09-26, 11:47, Sumeet Pawnikar wrote:
> Replace PTR_ERR() and %ld with %pe and pass the original pointer directly
> to pr_err() and pr_warn(). The %pe format specifier prints a symbolic error
> name (e.g. -ENOMEM) when CONFIG_SYMBOLIC_ERRNAME is enabled, otherwise it
> falls back gracefully and prints the raw integer value. This makes messages
> more readable without any functional change.
>
> Signed-off-by: Sumeet Pawnikar <sumeet4linux@xxxxxxxxx>
> ---
> drivers/cpufreq/bmips-cpufreq.c | 4 ++--
> drivers/cpufreq/cppc_cpufreq.c | 4 ++--
> drivers/cpufreq/qoriq-cpufreq.c | 4 ++--
> drivers/cpufreq/s3c64xx-cpufreq.c | 5 ++---
> 4 files changed, 8 insertions(+), 9 deletions(-)

Applied. Thanks.

--
viresh