From: Jesper Nilsson <Jesper.Nilsson@axis.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
Jesper Nilsson <Jesper.Nilsson@axis.com>,
Lars Persson <Lars.Persson@axis.com>,
linux-arm-kernel <linux-arm-kernel@axis.com>
Subject: Re: [PATCH] crypto: artpec6 - Fix printk warning on size_t/%d
Date: Fri, 16 Sep 2022 12:51:06 +0200 [thread overview]
Message-ID: <20220916105106.GO22198@axis.com> (raw)
In-Reply-To: <YyRRhv8mHcS4SFQY@gondor.apana.org.au>
On Fri, Sep 16, 2022 at 12:35:50PM +0200, Herbert Xu wrote:
> 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>
> 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;
> }
> --
> Email: Herbert Xu <herbert@gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@axis.com
prev parent reply other threads:[~2022-09-16 11:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-16 10:35 [PATCH] crypto: artpec6 - Fix printk warning on size_t/%d Herbert Xu
2022-09-16 10:51 ` Jesper Nilsson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220916105106.GO22198@axis.com \
--to=jesper.nilsson@axis.com \
--cc=Lars.Persson@axis.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-arm-kernel@axis.com \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.