From: Steven Seungcheol Lee Date: Fri, 11 Feb 2022 07:23:17 +0000 (+0900) Subject: nvme: io dry-run command meant to be show command based on help X-Git-Tag: v2.0-rc3~1^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fc5252312f3048d8d767c5a0d0c56c5663d9117f;p=users%2Fsagi%2Fnvme-cli.git nvme: io dry-run command meant to be show command based on help even if show-command arg is not given, it should show command Signed-off-by: Steven Seungcheol Lee --- diff --git a/nvme.c b/nvme.c index cc48aea9..edfb8b2c 100644 --- a/nvme.c +++ b/nvme.c @@ -6266,7 +6266,7 @@ static int submit_io(int opcode, char *command, const char *desc, } } - if (cfg.show) { + if (cfg.show || cfg.dry_run) { printf("opcode : %02x\n", opcode); printf("nsid : %02x\n", cfg.namespace_id); printf("flags : %02x\n", 0); @@ -7180,7 +7180,7 @@ static int passthru(int argc, char **argv, bool admin, } } - if (cfg.show_command) { + if (cfg.show_command || cfg.dry_run) { printf("opcode : %02x\n", cfg.opcode); printf("flags : %02x\n", cfg.flags); printf("rsvd1 : %04x\n", cfg.rsvd);