]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvmet: fix a format specifier in nvmet_auth_ctrl_exponential
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Jul 2022 05:02:29 +0000 (07:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:51 +0000 (17:22 -0600)
dh_keysize is a size_t, use the proper format specifier for printing it.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hannes Reinecke <hare@sues.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/auth.c

index bf92435c783c451554f72c1e7f6c6cda81ce7dd0..716a10ca91d1626964a1e187087641980654e8ce 100644 (file)
@@ -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 {