diff options
author | Christoph Hellwig | 2022-07-18 07:02:29 +0200 |
---|---|---|
committer | Jens Axboe | 2022-08-02 17:22:51 -0600 |
commit | 7b1aae1aee2225ec28eb17b9e5c5d5252922f67f (patch) | |
tree | e8370246b4c8fa30f826dc30b326306f83a570f3 /drivers/nvme | |
parent | ee8cd008b7da0ee6f24167739e364f43b8a0875b (diff) |
nvmet: fix a format specifier in nvmet_auth_ctrl_exponential
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/target/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/auth.c b/drivers/nvme/target/auth.c index bf92435c783c..716a10ca91d1 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 { |