Skip to content

Commit

Permalink
nvme: extend error message for ns scan failures
Browse files Browse the repository at this point in the history
When the scan operation fails, let's also report the error code in order
to help understand why the operation failed.

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Mar 28, 2024
1 parent 8d87d8d commit 1557239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -5096,7 +5096,7 @@ static int ns_rescan(int argc, char **argv, struct command *cmd, struct plugin *

err = nvme_ns_rescan(dev_fd(dev));
if (err < 0)
nvme_show_error("Namespace Rescan");
nvme_show_error("Namespace Rescan: %s\n", nvme_strerror(errno));

return err;
}
Expand Down

0 comments on commit 1557239

Please sign in to comment.