]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
fixup up self-test log when no test is in progress
authorKeith Busch <kbusch@kernel.org>
Thu, 21 Nov 2019 19:04:11 +0000 (04:04 +0900)
committerKeith Busch <kbusch@kernel.org>
Thu, 21 Nov 2019 19:05:39 +0000 (04:05 +0900)
Link: https://github.com/linux-nvme/nvme-cli/issues/612
Signed-off-by: Keith Busch <kbusch@kernel.org>
nvme-print.c

index ca233a5320b7247c8baee54c3e73f527a30d98c2..d5b08c3d65d2d96ab81c52374e1f4ceae21d5431 100644 (file)
@@ -3527,8 +3527,7 @@ void nvme_show_self_test_log(struct nvme_self_test_log *self_test, const char *d
        };
 
        if (self_test->crnt_dev_selftest_oprn == 0) {
-               fprintf(stderr, "Test is %d%% complete and is still in progress.\n",
-                       self_test->crnt_dev_selftest_compln);
+               fprintf(stderr, "No device self-test operation in progress\n");
                return;
        }