wan: framer: pef2256: use %pe in print format
Subsystems (3)
Jakub Kicinski
maintainerPATCH 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
@@ -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
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()Signed-off-by Jakub Kicinski <[email protected]>---
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
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é
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()Signed-off-by Jakub Kicinski <[email protected]>[...]
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