]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nvme/ioctl: add missing space in err message
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 13 Feb 2025 17:05:14 +0000 (10:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:56:38 +0000 (16:56 +0100)
[ 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>
drivers/nvme/host/ioctl.c

index a02873792890ee81905f18f664c22198ad5cb141..acf73a91e87e75ac3f22c4bd2c2ca4868e069983 100644 (file)
@@ -262,8 +262,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;
        }