summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-sha.c
diff options
context:
space:
mode:
authorKai Ye <yekai13@huawei.com>2021-04-08 18:23:50 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-16 21:16:33 +1000
commit3eb75fc7d8c79c7c6cfe388330c14999cf333d29 (patch)
tree50d4d6582c1a2d5fe91fd4bd367cd9673e7265ba /drivers/crypto/atmel-sha.c
parent1f34cc4a8da34fbb250efb928f9b8c6fe7ee0642 (diff)
downloadlinux-3eb75fc7d8c79c7c6cfe388330c14999cf333d29.tar.gz
linux-3eb75fc7d8c79c7c6cfe388330c14999cf333d29.tar.bz2
linux-3eb75fc7d8c79c7c6cfe388330c14999cf333d29.zip
crypto: atmel - use the correct print format
According to Documentation/core-api/printk-formats.rst, Use the correct print format. Printing an unsigned int value should use %u instead of %d. Signed-off-by: Kai Ye <yekai13@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-sha.c')
-rw-r--r--drivers/crypto/atmel-sha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c
index 352d80cb5ae9..1b13f601fd95 100644
--- a/drivers/crypto/atmel-sha.c
+++ b/drivers/crypto/atmel-sha.c
@@ -434,7 +434,7 @@ static int atmel_sha_init(struct ahash_request *req)
ctx->flags = 0;
- dev_dbg(dd->dev, "init: digest size: %d\n",
+ dev_dbg(dd->dev, "init: digest size: %u\n",
crypto_ahash_digestsize(tfm));
switch (crypto_ahash_digestsize(tfm)) {
@@ -1102,7 +1102,7 @@ static int atmel_sha_start(struct atmel_sha_dev *dd)
struct atmel_sha_reqctx *ctx = ahash_request_ctx(req);
int err;
- dev_dbg(dd->dev, "handling new req, op: %lu, nbytes: %d\n",
+ dev_dbg(dd->dev, "handling new req, op: %lu, nbytes: %u\n",
ctx->op, req->nbytes);
err = atmel_sha_hw_init(dd);