From d6237fec711e6063ec626ed8c3bd1b8e6fda442f Mon Sep 17 00:00:00 2001 From: Martin George Date: Sun, 16 Feb 2025 21:28:31 +0530 Subject: [PATCH] nvme: make get-feature JSON output print everything The nvme JSON outputs now print everything verbose. But this was missed out for the get-feature command, so fix the same here. Signed-off-by: Martin George --- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme.c b/nvme.c index 4f6cde85..9d6d7184 100644 --- a/nvme.c +++ b/nvme.c @@ -4678,7 +4678,7 @@ static void get_feature_id_print(struct feat_cfg cfg, int err, __u32 result, nvme_feature_show(cfg.feature_id, cfg.sel, result); if (NVME_CHECK(cfg.sel, GET_FEATURES_SEL, SUPPORTED)) nvme_show_select_result(cfg.feature_id, result); - else if (verbose) + else if (verbose || !strcmp(nvme_cfg.output_format, "json")) nvme_feature_show_fields(cfg.feature_id, result, buf); else if (buf) d(buf, cfg.data_len, 16, 1); -- 2.50.1