From: Sebastien GODARD Date: Wed, 29 Jul 2020 06:56:35 +0000 (+0200) Subject: Update sar, iostat and cifsiostat usage message X-Git-Tag: v12.4.0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a3c25266ce7c043de0f99a87d138b7586b226de;p=sysstat Update sar, iostat and cifsiostat usage message Add option --pretty to usage message. Signed-off-by: Sebastien GODARD --- diff --git a/cifsiostat.c b/cifsiostat.c index ab404e9..62488d1 100644 --- a/cifsiostat.c +++ b/cifsiostat.c @@ -77,10 +77,12 @@ void usage(char *progname) #ifdef DEBUG fprintf(stderr, _("Options are:\n" - "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ -h ] [ -k | -m ] [ -t ] [ -V ] [ --debuginfo ]\n")); + "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ --pretty ]\n" + "[ -h ] [ -k | -m ] [ -t ] [ -V ] [ --debuginfo ]\n")); #else fprintf(stderr, _("Options are:\n" - "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ -h ] [ -k | -m ] [ -t ] [ -V ]\n")); + "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ --pretty ]\n" + "[ -h ] [ -k | -m ] [ -t ] [ -V ]\n")); #endif exit(1); } diff --git a/iostat.c b/iostat.c index 0e2fc12..f90a387 100644 --- a/iostat.c +++ b/iostat.c @@ -91,14 +91,14 @@ void usage(char *progname) fprintf(stderr, _("Options are:\n" "[ -c ] [ -d ] [ -h ] [ -k | -m ] [ -N ] [ -s ] [ -t ] [ -V ] [ -x ] [ -y ] [ -z ]\n" "[ { -f | +f } ] [ -j { ID | LABEL | PATH | UUID | ... } ]\n" - "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ -o JSON ]\n" + "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ --pretty ] [ -o JSON ]\n" "[ [ -H ] -g ] [ -p [ [,...] | ALL ] ]\n" "[ [...] | ALL ] [ --debuginfo ]\n")); #else fprintf(stderr, _("Options are:\n" "[ -c ] [ -d ] [ -h ] [ -k | -m ] [ -N ] [ -s ] [ -t ] [ -V ] [ -x ] [ -y ] [ -z ]\n" "[ { -f | +f } ] [ -j { ID | LABEL | PATH | UUID | ... } ]\n" - "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ -o JSON ]\n" + "[ --dec={ 0 | 1 | 2 } ] [ --human ] [ --pretty ] [ -o JSON ]\n" "[ [ -H ] -g ] [ -p [ [,...] | ALL ] ]\n" "[ [...] | ALL ]\n")); #endif @@ -1708,7 +1708,7 @@ void write_stats(int curr, struct tm *rectime, int skip) int h, hl = 0, hh = 0, fctr = 1, tab = 4, next = FALSE; unsigned long long itv; struct io_device *d, *dtmp, *g = NULL, *dnext = NULL; - char *dev_name, *pdname; + char *dev_name; /* Test stdout */ TEST_STDOUT(STDOUT_FILENO); diff --git a/sar.c b/sar.c index 3052141..fc032f4 100644 --- a/sar.c +++ b/sar.c @@ -127,7 +127,7 @@ void usage(char *progname) "[ -m { [,...] | ALL } ] [ -n { [,...] | ALL } ]\n" "[ -q [ [,...] | ALL ] ]\n" "[ --dev= ] [ --fs= ] [ --iface= ]\n" - "[ --dec={ 0 | 1 | 2 } ] [ --help ] [ --human ] [ --sadc ]\n" + "[ --dec={ 0 | 1 | 2 } ] [ --help ] [ --human ] [ --pretty ] [ --sadc ]\n" "[ -j { SID | ID | LABEL | PATH | UUID | ... } ]\n" "[ -f [ ] | -o [ ] | -[0-9]+ ]\n" "[ -i ] [ -s [ ] ] [ -e [ ] ]\n"));