Skip to content

Commit 4bc9eeb

Browse files
committed
list-ctrl: limit to JSON and normal output
Binary format is not implemented for list-ctrl, so limit output to normal and json formats only. Signed-off-by: zguo <[email protected]>
1 parent 438304a commit 4bc9eeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@ static int list_ctrl(int argc, char **argv, struct command *cmd, struct plugin *
26292629
return err;
26302630

26312631
err = validate_output_format(nvme_cfg.output_format, &flags);
2632-
if (err < 0) {
2632+
if (err < 0 || (flags != JSON && flags != NORMAL)) {
26332633
nvme_show_error("Invalid output format");
26342634
return err;
26352635
}

0 commit comments

Comments
 (0)