From: Charlesworth, Thomas J Date: Tue, 22 Aug 2017 13:26:14 +0000 (-0400) Subject: nvme-cli: Fix nvme ns desc X-Git-Tag: v1.4~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1ea93507bede4588a5ea529c9c546896488a69aa;p=users%2Fsagi%2Fnvme-cli.git nvme-cli: Fix nvme ns desc Signed-off-by: Keith Busch --- diff --git a/nvme-ioctl.c b/nvme-ioctl.c index ca77c441..52243fa2 100644 --- a/nvme-ioctl.c +++ b/nvme-ioctl.c @@ -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 d6544d92..676e8bfa 100644 --- 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";