mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
staging: fbtft: Use %pe format specifier for error pointers
The %pe format specifier resolves error pointers to their symbolic representation. Previously %ld with PTR_ERR() was being used, %pe is a better alternative. Fixes the following coccinelle warnings reported by coccicheck: WARNING: Consider using %pe to print PTR_ERR() Testing: I do not own the hardware, therefore I could not perform hardware testing. Compile tested only. Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com> Link: https://patch.msgid.link/20260412144552.18493-1-mahad.ibrahim.dev@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5802af57b2
commit
59214b899b
|
|
@ -218,8 +218,7 @@ static void register_onboard_backlight(struct fbtft_par *par)
|
|||
&bl_props);
|
||||
if (IS_ERR(bd)) {
|
||||
dev_err(par->info->device,
|
||||
"cannot register backlight device (%ld)\n",
|
||||
PTR_ERR(bd));
|
||||
"cannot register backlight device (%pe)\n", bd);
|
||||
return;
|
||||
}
|
||||
par->info->bl_dev = bd;
|
||||
|
|
|
|||
|
|
@ -187,8 +187,7 @@ void fbtft_register_backlight(struct fbtft_par *par)
|
|||
&fbtft_bl_ops, &bl_props);
|
||||
if (IS_ERR(bd)) {
|
||||
dev_err(par->info->device,
|
||||
"cannot register backlight device (%ld)\n",
|
||||
PTR_ERR(bd));
|
||||
"cannot register backlight device (%pe)\n", bd);
|
||||
return;
|
||||
}
|
||||
par->info->bl_dev = bd;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user