[PATCH 1/1] kexec: Use %pe format specifier for error pointer printing
yanjun.zhu
yanjun.zhu at linux.dev
Tue Oct 21 15:42:00 PDT 2025
On 10/21/25 2:41 AM, Simon Horman wrote:
> 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.
Thank you very much. In next-20251021, I noticed that the directory is
now kernel/liveupdate/.
If a new commit is needed to reflect this change, please feel free to
let me know.
Yanjun.Zhu
>
> Reviewed-by: Simon Horman <horms at kernel.org>
>
More information about the kexec
mailing list