Re: [PATCH] opp: Use %pe to print symbolic error name
From: Viresh Kumar
Date: Mon Aug 31 2026 - 02:09:40 EST
On 29-08-26, 19:19, Sumeet Pawnikar wrote:
> Replace PTR_ERR() and %ld with %pe and pass the original pointer directly
> to dev_dbg(), dev_warn(), dev_err() or pr_err(). 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 error messages more readable without any functional
> change.
>
> Signed-off-by: Sumeet Pawnikar <sumeet4linux@xxxxxxxxx>
> ---
> drivers/opp/core.c | 24 ++++++++++++------------
> drivers/opp/of.c | 4 ++--
> 2 files changed, 14 insertions(+), 14 deletions(-)
Applied. Thanks.
--
viresh