]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: xilinx - Use %pe to print PTR_ERR
authorHarsh Jain <h.jain@amd.com>
Wed, 29 Oct 2025 07:08:38 +0000 (12:38 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Nov 2025 06:31:08 +0000 (14:31 +0800)
Fix cocci warnings to use %pe to print PTR_ERR().

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@inria.fr>
Closes: https://lore.kernel.org/r/202510231229.Z6TduqZy-lkp@intel.com/
Signed-off-by: Harsh Jain <h.jain@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/xilinx/xilinx-trng.c

index b89a2f70bf8213dc4633409abde0650f540770b4..db0fbb28ff32be4469bf3f4d7da5f45f6104bc22 100644 (file)
@@ -345,7 +345,7 @@ static int xtrng_probe(struct platform_device *pdev)
        rng->dev = &pdev->dev;
        rng->rng_base = devm_platform_ioremap_resource(pdev, 0);
        if (IS_ERR(rng->rng_base)) {
-               dev_err(&pdev->dev, "Failed to map resource %ld\n", PTR_ERR(rng->rng_base));
+               dev_err(&pdev->dev, "Failed to map resource %pe\n", rng->rng_base);
                return PTR_ERR(rng->rng_base);
        }