]> granicus.if.org Git - sysstat/commitdiff
Update sar, iostat and cifsiostat usage message
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 29 Jul 2020 06:56:35 +0000 (08:56 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 29 Jul 2020 06:56:35 +0000 (08:56 +0200)
Add option --pretty to usage message.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
cifsiostat.c
iostat.c
sar.c

index ab404e91492544914fd2a471dd8b4d940c3e71ce..62488d120ea839578c00b266368f1045d7592425 100644 (file)
@@ -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);
 }
index 0e2fc1256d90cb88e5a8aac02549401a01f77a00..f90a387b514854ec0203daa301744ef35a2ffbf0 100644 (file)
--- 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 } <directory> ] [ -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 <group_name> ] [ -p [ <device> [,...] | ALL ] ]\n"
                          "[ <device> [...] | ALL ] [ --debuginfo ]\n"));
 #else
        fprintf(stderr, _("Options are:\n"
                          "[ -c ] [ -d ] [ -h ] [ -k | -m ] [ -N ] [ -s ] [ -t ] [ -V ] [ -x ] [ -y ] [ -z ]\n"
                          "[ { -f | +f } <directory> ] [ -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 <group_name> ] [ -p [ <device> [,...] | ALL ] ]\n"
                          "[ <device> [...] | 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 3052141469253f923e56b0423407a060a640f129..fc032f4e8925458e1a4f32e2c073eb6ee037f62a 100644 (file)
--- a/sar.c
+++ b/sar.c
@@ -127,7 +127,7 @@ void usage(char *progname)
                          "[ -m { <keyword> [,...] | ALL } ] [ -n { <keyword> [,...] | ALL } ]\n"
                          "[ -q [ <keyword> [,...] | ALL ] ]\n"
                          "[ --dev=<dev_list> ] [ --fs=<fs_list> ] [ --iface=<iface_list> ]\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 [ <filename> ] | -o [ <filename> ] | -[0-9]+ ]\n"
                          "[ -i <interval> ] [ -s [ <hh:mm[:ss]> ] ] [ -e [ <hh:mm[:ss]> ] ]\n"));