summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2022-09-16 18:35:50 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-09-24 16:14:43 +0800
commit4532f1cf9caaf2588d48d1de7770a6d5d1f95e89 (patch)
treeaf9a3551c83bcdda5a479d59e52b9939854acc04
parent33837be33367172d66d1f2bd6964cc41448e6e7c (diff)
downloadlinux-stable-4532f1cf9caaf2588d48d1de7770a6d5d1f95e89.tar.gz
linux-stable-4532f1cf9caaf2588d48d1de7770a6d5d1f95e89.tar.bz2
linux-stable-4532f1cf9caaf2588d48d1de7770a6d5d1f95e89.zip
crypto: artpec6 - Fix printk warning on size_t/%d
Switch to %zu instead of %d for printing size_t. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/axis/artpec6_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/axis/artpec6_crypto.c b/drivers/crypto/axis/artpec6_crypto.c
index b4820594ab80..51c66afbe677 100644
--- a/drivers/crypto/axis/artpec6_crypto.c
+++ b/drivers/crypto/axis/artpec6_crypto.c
@@ -1712,7 +1712,7 @@ static int artpec6_crypto_prepare_crypto(struct skcipher_request *areq)
cipher_len = regk_crypto_key_256;
break;
default:
- pr_err("%s: Invalid key length %d!\n",
+ pr_err("%s: Invalid key length %zu!\n",
MODULE_NAME, ctx->key_length);
return -EINVAL;
}