Re: [PATCH 2/5] thermal: Use %pe to print error pointers symbolically

From: Krzysztof Kozlowski

Date: Sun Sep 06 2026 - 02:29:48 EST


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