[PATCH 2/5] thermal: Use %pe to print error pointers symbolically
Krzysztof Kozlowski
krzk at kernel.org
Sat Sep 5 23:29:11 PDT 2026
On 06/09/2026 08:17, Sumeet Pawnikar wrote:
> +++ b/drivers/thermal/thermal_mmio.c
> @@ -71,8 +71,7 @@ static int thermal_mmio_probe(struct platform_device *pdev)
> &thermal_mmio_ops);
> if (IS_ERR(thermal_zone)) {
> dev_err(&pdev->dev,
> - "failed to register sensor (%ld)\n",
> - PTR_ERR(thermal_zone));
> + "failed to register sensor (%pe)\n", thermal_zone);
> return PTR_ERR(thermal_zone);
Same comments. Syntax is just return dev_err_probe. When making such
changes, you should not do them blindly, but replace the code into
really the correct one.
Best regards,
Krzysztof
More information about the Linux-mediatek
mailing list