Thread (11 messages) flat view 11 messages, 3 authors, 1d ago

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

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2026-09-06 06:29:24
Also in: imx, linux-arm-msm, linux-mediatek, linux-pm, linux-samsung-soc, lkml

On 06/09/2026 08:17, Sumeet Pawnikar wrote:
quoted hunk ↗ jump to hunk
+++ 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help