]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
nvme-cli: Fix nvme ns desc
authorCharlesworth, Thomas J <thomas.j.charlesworth@intel.com>
Tue, 22 Aug 2017 13:26:14 +0000 (09:26 -0400)
committerKeith Busch <keith.busch@intel.com>
Tue, 22 Aug 2017 13:27:52 +0000 (09:27 -0400)
Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme-ioctl.c
nvme.c

index ca77c441169fd18949e34dc07df23dd0c4b5df92..52243fa2e6e0a8862d22aa4224189b2c46403581 100644 (file)
@@ -368,7 +368,7 @@ int nvme_identify_ctrl_list(int fd, __u32 nsid, __u16 cntid, void *data)
 int nvme_identify_ns_descs(int fd, __u32 nsid, void *data)
 {
 
-       return nvme_identify(fd, nsid, NVME_ID_CNS_CTRL_LIST, data);
+       return nvme_identify(fd, nsid, NVME_ID_CNS_NS_DESC_LIST, data);
 }
 
 int nvme_get_log(int fd, __u32 nsid, __u8 log_id, __u32 data_len, void *data)
diff --git a/nvme.c b/nvme.c
index d6544d92a3085ce1eeb67123f0f03be044b6131e..676e8bfa1f4d21e45d9976dbe3ac34f21506b444 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -1025,7 +1025,7 @@ static int id_ctrl(int argc, char **argv, struct command *cmd, struct plugin *pl
 
 static int ns_descs(int argc, char **argv, struct command *cmd, struct plugin *plugin)
 {
-       const char *desc = "Send Namespace Identification Descriptoprs commadn to the "\
+       const char *desc = "Send Namespace Identification Descriptors command to the "\
                            "given device, returns the namespace identifcation descriptors "\
                            "of the specific namespace in either human-readable or binary format.";
        const char *raw_binary = "show infos in binary format";