Thread (13 messages) 13 messages, 3 authors, 2026-09-12

Re: [PATCH 4/5] devfreq: Use %pe to print error pointers symbolically

flat view

From: Sumeet Pawnikar <hidden>
Date: 2026-09-12 19:07:51
Also in: imx, linux-arm-msm, linux-mediatek, linux-pm, linux-samsung-soc, lkml

On Sun, Sep 6, 2026 at 12:00 PM Krzysztof Kozlowski [off-list ref] wrote:
On 06/09/2026 08:17, Sumeet Pawnikar wrote:
quoted
              ret = -EPROBE_DEFER;
-             dev_err(dev, "failed to add devfreq device: %ld\n",
-                     PTR_ERR(drv->devfreq));
+             dev_err(dev, "failed to add devfreq device: %pe\n",
+                     drv->devfreq);
Instead you should use dev_err_probe and drop the last argument.
Sure. I'll do this suggested usage of dev_err_probe in different patch
series for *_probe() functions update.

Planning to post V2 for this original series to use %pe to print the
error pointers symbolically, reverting the change for dev_err under
*_porbe() function.

Thanks,
Sumeet.
Best regards,
Krzysztof
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help