* [PATCH v2 02/11] iio: adc: change from %ld to %pe for PTR_ERR() printing [not found] <20260604120201.116925-1-vo.kratky@seznam.cz> @ 2026-06-04 11:59 ` Vojtěch Krátký 2026-06-13 8:06 ` Jernej Škrabec 0 siblings, 1 reply; 4+ messages in thread From: Vojtěch Krátký @ 2026-06-04 11:59 UTC (permalink / raw) To: linux-iio Cc: Vojtěch Krátký, Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Sakari Ailus, Linus Walleij, Wolfram Sang, linux-arm-kernel, linux-sunxi, linux-kernel Replace numeric PTR_ERR() logging with the %pe format specifier so that error values are printed in a more readable form. This change was identified using a Coccinelle semantic patch. No functional change intended. Signed-off-by: Vojtěch Krátký <vo.kratky@seznam.cz> --- drivers/iio/adc/sun4i-gpadc-iio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c index 479115ea50bf..5d7a61abcaea 100644 --- a/drivers/iio/adc/sun4i-gpadc-iio.c +++ b/drivers/iio/adc/sun4i-gpadc-iio.c @@ -508,7 +508,7 @@ static int sun4i_gpadc_probe_dt(struct platform_device *pdev, &sun4i_gpadc_regmap_config); if (IS_ERR(info->regmap)) { ret = PTR_ERR(info->regmap); - dev_err(&pdev->dev, "failed to init regmap: %d\n", ret); + dev_err(&pdev->dev, "failed to init regmap: %pe\n", info->regmap); return ret; } @@ -639,8 +639,8 @@ static int sun4i_gpadc_probe(struct platform_device *pdev) */ if (IS_ERR(info->tzd) && PTR_ERR(info->tzd) != -ENODEV) { dev_err(&pdev->dev, - "could not register thermal sensor: %ld\n", - PTR_ERR(info->tzd)); + "could not register thermal sensor: %pe\n", + info->tzd); return PTR_ERR(info->tzd); } } -- 2.54.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 02/11] iio: adc: change from %ld to %pe for PTR_ERR() printing 2026-06-04 11:59 ` [PATCH v2 02/11] iio: adc: change from %ld to %pe for PTR_ERR() printing Vojtěch Krátký @ 2026-06-13 8:06 ` Jernej Škrabec 2026-09-21 16:08 ` Chen-Yu Tsai 0 siblings, 1 reply; 4+ messages in thread From: Jernej Škrabec @ 2026-06-13 8:06 UTC (permalink / raw) To: linux-iio, Vojtěch Krátký Cc: Vojtěch Krátký, Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko, Chen-Yu Tsai, Samuel Holland, Sakari Ailus, Linus Walleij, Wolfram Sang, linux-arm-kernel, linux-sunxi, linux-kernel Dne četrtek, 4. junij 2026 ob 13:59:22 Srednjeevropski poletni čas je Vojtěch Krátký napisal(a): > Replace numeric PTR_ERR() logging with the %pe format specifier > so that error values are printed in a more readable form. > > This change was identified using a Coccinelle semantic patch. > > No functional change intended. > > Signed-off-by: Vojtěch Krátký <vo.kratky@seznam.cz> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Best regards, Jernej ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 02/11] iio: adc: change from %ld to %pe for PTR_ERR() printing 2026-06-13 8:06 ` Jernej Škrabec @ 2026-09-21 16:08 ` Chen-Yu Tsai 2026-09-22 0:23 ` Jonathan Cameron 0 siblings, 1 reply; 4+ messages in thread From: Chen-Yu Tsai @ 2026-09-21 16:08 UTC (permalink / raw) To: Jonathan Cameron Cc: Jernej Škrabec, linux-iio, Vojtěch Krátký, David Lechner, Nuno Sá, Andy Shevchenko, Samuel Holland, Sakari Ailus, Linus Walleij, Wolfram Sang, linux-arm-kernel, linux-sunxi, linux-kernel Jonathan, On Sat, Jun 13, 2026 at 4:06 PM Jernej Škrabec <jernej.skrabec@gmail.com> wrote: > > Dne četrtek, 4. junij 2026 ob 13:59:22 Srednjeevropski poletni čas je Vojtěch Krátký napisal(a): > > Replace numeric PTR_ERR() logging with the %pe format specifier > > so that error values are printed in a more readable form. > > > > This change was identified using a Coccinelle semantic patch. > > > > No functional change intended. > > > > Signed-off-by: Vojtěch Krátký <vo.kratky@seznam.cz> > > Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Any chance you can still pick this up? Thanks ChenYu ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 02/11] iio: adc: change from %ld to %pe for PTR_ERR() printing 2026-09-21 16:08 ` Chen-Yu Tsai @ 2026-09-22 0:23 ` Jonathan Cameron 0 siblings, 0 replies; 4+ messages in thread From: Jonathan Cameron @ 2026-09-22 0:23 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Jernej Škrabec, linux-iio, Vojtěch Krátký, David Lechner, Nuno Sá, Andy Shevchenko, Samuel Holland, Sakari Ailus, Linus Walleij, Wolfram Sang, linux-arm-kernel, linux-sunxi, linux-kernel On Tue, 22 Sep 2026 00:08:55 +0800 Chen-Yu Tsai <wens@kernel.org> wrote: > Jonathan, > > On Sat, Jun 13, 2026 at 4:06 PM Jernej Škrabec <jernej.skrabec@gmail.com> wrote: > > > > Dne četrtek, 4. junij 2026 ob 13:59:22 Srednjeevropski poletni čas je Vojtěch Krátký napisal(a): > > > Replace numeric PTR_ERR() logging with the %pe format specifier > > > so that error values are printed in a more readable form. > > > > > > This change was identified using a Coccinelle semantic patch. > > > > > > No functional change intended. > > > > > > Signed-off-by: Vojtěch Krátký <vo.kratky@seznam.cz> > > > > Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> > > Any chance you can still pick this up? Not without Andy's feedback being taken into account as it seems to apply to this patch as well as the one he commented on https://lore.kernel.org/all/CAHp75VcKGfzQePh0TzsNBKPjHxr=ey8uO=4_+_oaioSNKkS8_A@mail.gmail.com/ > > > Thanks > ChenYu ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-22 0:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260604120201.116925-1-vo.kratky@seznam.cz>
2026-06-04 11:59 ` [PATCH v2 02/11] iio: adc: change from %ld to %pe for PTR_ERR() printing Vojtěch Krátký
2026-06-13 8:06 ` Jernej Škrabec
2026-09-21 16:08 ` Chen-Yu Tsai
2026-09-22 0:23 ` Jonathan Cameron
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox