[PATCH] nvmet: fix a format specifier in nvmet_auth_ctrl_exponential
Guenter Roeck
linux at roeck-us.net
Sun Jul 17 22:55:54 PDT 2022
On 7/17/22 22:03, Christoph Hellwig wrote:
> dh_keysize is a size_t, use the proper format specifier for printing it.
>
> Reported-by: Guenter Roeck <linux at roeck-us.net>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Reviewed-by: Guenter Roeck <linux at roeck-us.net>
> ---
> drivers/nvme/target/auth.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvme/target/auth.c b/drivers/nvme/target/auth.c
> index b41c7bbcc4366..cf690df347758 100644
> --- a/drivers/nvme/target/auth.c
> +++ b/drivers/nvme/target/auth.c
> @@ -488,7 +488,7 @@ int nvmet_auth_ctrl_exponential(struct nvmet_req *req,
> return -ENOKEY;
> }
> if (buf_size != ctrl->dh_keysize) {
> - pr_warn("ctrl %d DH public key size mismatch, need %lu is %d\n",
> + pr_warn("ctrl %d DH public key size mismatch, need %zu is %d\n",
> ctrl->cntlid, ctrl->dh_keysize, buf_size);
> ret = -EINVAL;
> } else {
More information about the Linux-nvme
mailing list