From: minwoo.im.dev@gmail.com (Minwoo Im)
Subject: [PATCH] nvme-cli: add command specific field to json output of error-log
Date: Wed, 24 Jan 2018 21:26:02 +0900 [thread overview]
Message-ID: <1516796762-32007-1-git-send-email-minwoo.im.dev@gmail.com> (raw)
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(+)
diff --git a/nvme-print.c b/nvme-print.c
index 1ca4b71..2e8e56f 100644
--- a/nvme-print.c
+++ b/nvme-print.c
@@ -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);
}
--
2.7.4
reply other threads:[~2018-01-24 12:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516796762-32007-1-git-send-email-minwoo.im.dev@gmail.com \
--to=minwoo.im.dev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).