Skip to contentSkip to conversation

nvme-cli: add command specific field to json output of error-log

PATCH New Minwoo Im 1 participant 1 message Jan 24, 2018 NVMe

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

PATCH 1/1 nvme-cli: add command specific field to json output of error-log

Add command specific field to json output of error-log command. This field was added in commit 662c1618 without considering json output format.

Fixes 662c1618("nvme-cli: add print for command specific info field of error log page")
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
---
 nvme-print.c | 1 +
 1 file changed, 1 insertion(+)
nvme-print.c +1 -0
index 1ca4b71..2e8e56f 100644
@@ -1841,6 +1841,7 @@ void json_error_log(struct nvme_error_log_page *err_log, int entries, const char
 		json_object_add_value_int(error, "lba", err_log[i].lba);
 		json_object_add_value_int(error, "nsid", err_log[i].nsid);
 		json_object_add_value_int(error, "vs", err_log[i].vs);
+		json_object_add_value_uint(error, "cs", err_log[i].cs);
 
 		json_array_add_value_object(errors, error);
 	}
Signature · 1 line
2.7.4