File 0015-nvme-cli-fix-nvme-ns-desc.patch of Package nvme-cli.10193

From e4d3424edabbbf6446adb756767c77a942bbdcd4 Mon Sep 17 00:00:00 2001
From: "Charlesworth, Thomas J" <thomas.j.charlesworth@intel.com>
Date: Tue, 22 Aug 2017 09:26:14 -0400
Subject: nvme-cli: Fix nvme ns desc

Git-commit: 1ea93507bede4588a5ea529c9c546896488a69aa
References: bsc#1076127

Signed-off-by: Keith Busch <keith.busch@intel.com>
---
 nvme-ioctl.c | 2 +-
 nvme.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nvme-ioctl.c b/nvme-ioctl.c
index 613b89a..d3af11e 100644
--- a/nvme-ioctl.c
+++ b/nvme-ioctl.c
@@ -367,7 +367,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 9c1459e..aecc802 100644
--- a/nvme.c
+++ b/nvme.c
@@ -952,7 +952,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";
-- 
2.13.7

openSUSE Build Service is sponsored by