[PATCH 1/1] kexec: Use %pe format specifier for error pointer printing
Zhu Yanjun
yanjun.zhu at linux.dev
Tue Oct 21 06:56:19 PDT 2025
在 2025/10/21 2:41, Simon Horman 写道:
> On Thu, Oct 16, 2025 at 08:03:20PM +0000, Zhu Yanjun wrote:
>> Make pr_xxx() call to use the %pe format specifier instead of %d.
>> The %pe specifier prints a symbolic error string (e.g., -ENOMEM,
>> -EINVAL) when given an error pointer created with ERR_PTR(err).
>>
>> This change enhances the clarity and diagnostic value of the error
>> message by showing a descriptive error name rather than a numeric
>> error code.
>>
>> Signed-off-by: Zhu Yanjun <yanjun.zhu at linux.dev>
> Thanks,
>
> This looks good to me, even though I note that this file
> has moved in linux-next.
Thanks a lot.
Yanjun.Zhu
>
> Reviewed-by: Simon Horman <horms at kernel.org>
--
Best Regards,
Yanjun.Zhu
More information about the kexec
mailing list