summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2018-04-23 09:25:15 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-05 08:52:44 +0200
commit5e7b516a8e6f840bcdfd5d6a8ede06bad62bc604 (patch)
tree5160bc3c368046cd60faaaa37df41ed3d64c55d5
parentcrypto: ccree - enable support for hardware keys (diff)
downloadlinux-5e7b516a8e6f840bcdfd5d6a8ede06bad62bc604.tar.xz
linux-5e7b516a8e6f840bcdfd5d6a8ede06bad62bc604.zip
crypto: ccree - use proper printk format
Fix incorrect use of %pad as a printk format string for none dma_addr_t variable. Discovered via smatch. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/ccree/cc_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c
index 89ce013ae093..37f2e6ec0e88 100644
--- a/drivers/crypto/ccree/cc_driver.c
+++ b/drivers/crypto/ccree/cc_driver.c
@@ -265,7 +265,7 @@ static int init_cc_resources(struct platform_device *plat_dev)
}
if (rc) {
- dev_err(dev, "Failed in dma_set_mask, mask=%pad\n", &dma_mask);
+ dev_err(dev, "Failed in dma_set_mask, mask=%llx\n", dma_mask);
return rc;
}