Skip to content

Commit e827831

Browse files
committed
nvme-print: update list-subsys output for iopolicy
Before commit d0b4c6c, the iopolicy was displayed only in the verbose regular/json outputs of the list-subsys commands, similar to what is currently seen for the show-topology verbose outputs. But now, iopolicy is seen in the list-subsys regular output itself conflicting with its corresponding json output. So to maintain consistency across the board, move the iopolicy to the verbose output itself for the list-subsys command. Signed-off-by: Martin George <[email protected]>
1 parent a138f6e commit e827831

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nvme-print-stdout.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,8 +1143,6 @@ static void stdout_subsys_config(nvme_subsystem_t s)
11431143
nvme_subsystem_get_nqn(s));
11441144
printf("%*s hostnqn=%s\n", len, " ",
11451145
nvme_host_get_hostnqn(nvme_subsystem_get_host(s)));
1146-
printf("%*s iopolicy=%s\n", len, " ",
1147-
nvme_subsystem_get_iopolicy(s));
11481146

11491147
if (stdout_print_ops.flags & VERBOSE) {
11501148
printf("%*s model=%s\n", len, " ",
@@ -1153,6 +1151,8 @@ static void stdout_subsys_config(nvme_subsystem_t s)
11531151
nvme_subsystem_get_serial(s));
11541152
printf("%*s firmware=%s\n", len, " ",
11551153
nvme_subsystem_get_fw_rev(s));
1154+
printf("%*s iopolicy=%s\n", len, " ",
1155+
nvme_subsystem_get_iopolicy(s));
11561156
printf("%*s type=%s\n", len, " ",
11571157
nvme_subsystem_get_type(s));
11581158
}

0 commit comments

Comments
 (0)