summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-02-13 10:05:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-27 04:30:20 -0800
commitd2d5fe4c648007dbf61a97b8c7767a79b998e404 (patch)
tree23d2af1508021a52495ea7e0bef3138f6184272d /drivers
parent020c50e314dcdf6b8c5027ff62571547e6da0e0b (diff)
downloadlinux-d2d5fe4c648007dbf61a97b8c7767a79b998e404.tar.gz
linux-d2d5fe4c648007dbf61a97b8c7767a79b998e404.tar.bz2
linux-d2d5fe4c648007dbf61a97b8c7767a79b998e404.zip
nvme/ioctl: add missing space in err message
[ Upstream commit 487a3ea7b1b8ba2ca7d2c2bb3c3594dc360d6261 ] nvme_validate_passthru_nsid() logs an err message whose format string is split over 2 lines. There is a missing space between the two pieces, resulting in log lines like "... does not match nsid (1)of namespace". Add the missing space between ")" and "of". Also combine the format string pieces onto a single line to make the err message easier to grep. Fixes: e7d4b5493a2d ("nvme: factor out a nvme_validate_passthru_nsid helper") Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvme/host/ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvme/host/ioctl.c b/drivers/nvme/host/ioctl.c
index a96976b22fa7..61af1583356c 100644
--- a/drivers/nvme/host/ioctl.c
+++ b/drivers/nvme/host/ioctl.c
@@ -276,8 +276,7 @@ static bool nvme_validate_passthru_nsid(struct nvme_ctrl *ctrl,
{
if (ns && nsid != ns->head->ns_id) {
dev_err(ctrl->device,
- "%s: nsid (%u) in cmd does not match nsid (%u)"
- "of namespace\n",
+ "%s: nsid (%u) in cmd does not match nsid (%u) of namespace\n",
current->comm, nsid, ns->head->ns_id);
return false;
}