ppc64-diag/ppc64-diag-2.7.9-diag_nvme-man-and-help-page.patch
Than Ngo 7a4d6633db - man and help of diag_nvme are not in sync
- compiler warnings
- diag_nvme: call_home command fails on nvmf drive
- rtas_errd: Fix core dump with large filename passed to -f option

Resolves: RHEL-55398
2024-12-03 10:19:47 +01:00

63 lines
2.0 KiB
Diff

commit 420d5145230041e0256f0f950a36c4ecaed4d584
Author: Barnali Guha Thakurata <barnali@linux.ibm.com>
Date: Mon Jan 8 16:59:33 2024 +0530
diag_nvme help output update
This patch changes "nvme_devices" in the help output of diag_nvme to
"nvmen ..." so that it matches with the naming convention in the
manual page
Before patch:
diags/diag_nvme --help
Usage: diags/diag_nvme [-h] [<nvme_devices>]
-h or --help: print this help message
<nvme_devices>: the NVMe devices on which to operate, for
example nvme0; if not specified, all detected
nvme devices will be diagnosed
man diags/man/diag_nvme.8
...
SYNOPSIS
diag_nvme [<nvmen ...>]
diag_nvme <nvmen>
diag_nvme --help
...
After patch:
diags/diag_nvme --help
Usage: diags/diag_nvme [-h] [<nvmen ...>]
-h or --help: print this help message
<nvmen ...>: the NVMe devices on which to operate, for
example nvme0; if not specified, all detected
nvme devices will be diagnosed
man diags/man/diag_nvme.8
...
SYNOPSIS
diag_nvme [<nvmen ...>]
diag_nvme <nvmen>
diag_nvme --help
...
Signed-off-by: Barnali Guha Thakurata <barnali@linux.ibm.com>
diff --git a/diags/diag_nvme.c b/diags/diag_nvme.c
index c1c0a20..2a74007 100644
--- a/diags/diag_nvme.c
+++ b/diags/diag_nvme.c
@@ -989,9 +989,9 @@ extern int open_nvme(char *dev_path) {
}
static void print_usage(char *command) {
- printf("Usage: %s [-h] [<nvme_devices>]\n"
+ printf("Usage: %s [-h] [<nvmen ...>]\n"
"\t-h or --help: print this help message\n"
- "\t<nvme_devices>: the NVMe devices on which to operate, for\n"
+ "\t<nvmen ...>: the NVMe devices on which to operate, for\n"
"\t example nvme0; if not specified, all detected\n"
"\t nvme devices will be diagnosed\n", command);
}