73 lines
2.4 KiB
Diff
73 lines
2.4 KiB
Diff
commit 565035cf98e97c7adda523221e109c676daf3430
|
|
Author: Barnali Guha Thakurata <barnali@linux.ibm.com>
|
|
Date: Mon Jan 8 20:16:19 2024 +0530
|
|
|
|
diag_encl help output update
|
|
|
|
This patch changes "scsi_enclosure" in the help output of diag_encl to
|
|
"sgn ..." so that it matches with the naming convention in the
|
|
manual page
|
|
|
|
Before patch:
|
|
|
|
diags/diag_encl --help
|
|
Usage: diags/diag_encl [-h] [-V] [...] [<scsi_enclosure>]
|
|
|
|
[...]
|
|
<scsi_enclosure>: the sg device on which to operate, such
|
|
as sg7; if not specified, all such
|
|
devices will be diagnosed
|
|
man diags/man/diag_encl.8
|
|
...
|
|
SYNOPSIS
|
|
diag_encl [-s [-c][-l]] [-v] [-f <path.pg2>] [sgn ...]
|
|
diag_encl -d
|
|
diag_encl --version
|
|
diag_encl --help
|
|
...
|
|
|
|
After patch:
|
|
|
|
diags/diag_encl --help
|
|
Usage: diags/diag_encl [-h] [-V] [...] [-f <path.pg2>] [<sgn ...>]
|
|
|
|
[...]
|
|
<sgn ...>: the scsi device on which to operate, such
|
|
as sg7; if not specified, all such
|
|
devices will be diagnosed
|
|
|
|
man diags/man/diag_encl.8
|
|
...
|
|
SYNOPSIS
|
|
diag_encl [-s [-c][-l]] [-v] [-f <path.pg2>] [sgn ...]
|
|
diag_encl -d
|
|
diag_encl --version
|
|
diag_encl --help
|
|
...
|
|
|
|
Signed-off-by: Barnali Guha Thakurata <barnali@linux.ibm.com>
|
|
|
|
diff --git a/diags/diag_encl.c b/diags/diag_encl.c
|
|
index 449b097..e0d86ce 100644
|
|
--- a/diags/diag_encl.c
|
|
+++ b/diags/diag_encl.c
|
|
@@ -75,8 +75,7 @@ static struct {
|
|
*/
|
|
static void
|
|
print_usage(const char *name) {
|
|
- printf("Usage: %s [-h] [-V] [-s [-c][-l]] [-v] [-f <path.pg2>]"
|
|
- " [<scsi_enclosure>]\n"
|
|
+ printf("Usage: %s [-h] [-V] [-s [-c][-l]] [-v] [-f <path.pg2>] [<sgn ...>]\n"
|
|
"\n\t-h: print this help message\n"
|
|
"\t-s: generate serviceable events for any failures and\n"
|
|
"\t write events to the servicelog\n"
|
|
@@ -87,7 +86,7 @@ print_usage(const char *name) {
|
|
"\t-V: print the version of the command and exit\n"
|
|
"\t-f: for testing, read SES data from path.pg2 and VPD\n"
|
|
"\t from path.vpd\n"
|
|
- "\t<scsi_enclosure>: the sg device on which to operate, such\n"
|
|
+ "\t<sgn ...>: the scsi device on which to operate, such\n"
|
|
"\t as sg7; if not specified, all such\n"
|
|
"\t devices will be diagnosed\n", name);
|
|
}
|