Skip to content

Commit d6237fe

Browse files
martin-gpyigaw
authored andcommitted
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 <[email protected]>
1 parent 0ef21f4 commit d6237fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4678,7 +4678,7 @@ static void get_feature_id_print(struct feat_cfg cfg, int err, __u32 result,
46784678
nvme_feature_show(cfg.feature_id, cfg.sel, result);
46794679
if (NVME_CHECK(cfg.sel, GET_FEATURES_SEL, SUPPORTED))
46804680
nvme_show_select_result(cfg.feature_id, result);
4681-
else if (verbose)
4681+
else if (verbose || !strcmp(nvme_cfg.output_format, "json"))
46824682
nvme_feature_show_fields(cfg.feature_id, result, buf);
46834683
else if (buf)
46844684
d(buf, cfg.data_len, 16, 1);

0 commit comments

Comments
 (0)