Skip to contentSkip to conversation

wan: framer: pef2256: use %pe in print format

PATCH Applied Jakub Kicinski 3 participants 3 messages Sep 18, 2025 – Sep 19, 2025

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 wan: framer: pef2256: use %pe in print format

New cocci check complains:

drivers/net/wan/framer/pef2256/pef2256.c:733:3-10: WARNING: Consider using %pe to print PTR_ERR()

---
CC: [email protected]

---
 drivers/net/wan/framer/pef2256/pef2256.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wan/framer/pef2256/pef2256.c +2 -2
index 1e4c8e85d598..2a25cbd3f13b 100644
@@ -719,8 +719,8 @@ static int pef2256_probe(struct platform_device *pdev)
 	pef2256->regmap = devm_regmap_init_mmio(&pdev->dev, iomem,
 						&pef2256_regmap_config);
 	if (IS_ERR(pef2256->regmap)) {
-		dev_err(&pdev->dev, "Failed to initialise Regmap (%ld)\n",
-			PTR_ERR(pef2256->regmap));
+		dev_err(&pdev->dev, "Failed to initialise Regmap (%pe)\n",
+			pef2256->regmap);
 		return PTR_ERR(pef2256->regmap);
 	}
 
Signature · 1 line
2.51.0
maintainer Acked-by on v1 1/1
#1 lore raw

Hi Jakub,

Quoted 17 lines · On Thu, 18 Sep 2025 06:46:37 -0700 Jakub Kicinski <[email protected]> wrote:

New cocci check complains:

drivers/net/wan/framer/pef2256/pef2256.c:733:3-10: WARNING: Consider using %pe to print PTR_ERR()

---
CC: [email protected]

---
 drivers/net/wan/framer/pef2256/pef2256.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wan/framer/pef2256/pef2256.c +0 -0
index 1e4c8e85d598..2a25cbd3f13b 100644

drivers/net/wan/framer/pef2256/pef2256.c static int pef2256_probe(struct platform_device *pdev) · line 726

Quoted 10 lines
drivers/net/wan/framer/pef2256/pef2256.c +2 -2
@@ -719,8 +719,8 @@ static int pef2256_probe(struct platform_device *pdev)
 	pef2256->regmap = devm_regmap_init_mmio(&pdev->dev, iomem,
 						&pef2256_regmap_config);
 	if (IS_ERR(pef2256->regmap)) {
-		dev_err(&pdev->dev, "Failed to initialise Regmap (%ld)\n",
-			PTR_ERR(pef2256->regmap));
+		dev_err(&pdev->dev, "Failed to initialise Regmap (%pe)\n",
+			pef2256->regmap);
 		return PTR_ERR(pef2256->regmap);
 	}
 

Best regards,
Hervé

#2 lore raw
In reply to Jakub Kicinski
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 18 Sep 2025 06:46:37 -0700 you wrote:

New cocci check complains:

drivers/net/wan/framer/pef2256/pef2256.c:733:3-10: WARNING: Consider using %pe to print PTR_ERR()

[...]

Here is the summary with links:
- [net-next] wan: framer: pef2256: use %pe in print format

    https://git.kernel.org/netdev/net-next/c/3fb4f35a75e8

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html