crypto: xilinx - Use %pe to print PTR_ERR
Subsystems (2)
PATCH 1/1 crypto: xilinx - Use %pe to print PTR_ERR
Fix cocci warnings to use %pe to print PTR_ERR().
Reported-by kernel test robot <[email protected]>
Reported-by Julia Lawall <[email protected]>
Signed-off-by Harsh Jain <[email protected]>
--- drivers/crypto/xilinx/xilinx-trng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/xilinx/xilinx-trng.c +1 -1
@@ -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); }
Signature · 1 line
2.49.1
Herbert Xu
maintainerQuoted 9 lines · Harsh Jain
Fix cocci warnings to use %pe to print
PTR_ERR().Reported-by kernel test robot <[email protected]>Reported-by Julia Lawall <[email protected]>Signed-off-by Harsh Jain <[email protected]>--- drivers/crypto/xilinx/xilinx-trng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt