]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: add command specific field to json output of error-log
authorMinwoo Im <minwoo.im.dev@gmail.com>
Tue, 30 Jan 2018 09:55:27 +0000 (18:55 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Tue, 30 Jan 2018 09:55:27 +0000 (18:55 +0900)
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@gmail.com>
nvme-print.c

index 1ca4b711af2ece52c6253d0e760625fa01064e16..2e8e56f177455146f1254e77e8728ffccde0a8ab 100644 (file)
@@ -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);
        }