[PATCH 4/5] devfreq: Use %pe to print error pointers symbolically
Krzysztof Kozlowski
krzk at kernel.org
Sat Sep 5 23:30:40 PDT 2026
On 06/09/2026 08:17, Sumeet Pawnikar wrote:
> 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.
Best regards,
Krzysztof
More information about the Linux-mediatek
mailing list