[PATCH] nvmet: fix a format specifier in nvmet_auth_ctrl_exponential
Christoph Hellwig
hch at lst.de
Sun Jul 17 22:03:56 PDT 2022
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>
---
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 {
--
2.30.2
More information about the Linux-nvme
mailing list