]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: fix several typos in netem's usage string
authorFrançois Michel <francois.michel@uclouvain.be>
Thu, 31 Aug 2023 14:01:32 +0000 (16:01 +0200)
committerDavid Ahern <dsahern@kernel.org>
Mon, 11 Sep 2023 15:14:35 +0000 (09:14 -0600)
Add missing brackets and surround brackets by single spaces
in the netem usage string.
Also state the P14 argument as optional.

Signed-off-by: François Michel <francois.michel@uclouvain.be>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
tc/q_netem.c

index 3be647ffe7a1e63f3de094b715e837fa248b5a11..5d5aad808e4dde30839d9a94553c541e78a72f94 100644 (file)
@@ -24,20 +24,20 @@ static void explain(void)
 {
        fprintf(stderr,
                "Usage: ... netem [ limit PACKETS ]\n"
-               "                 [ delay TIME [ JITTER [CORRELATION]]]\n"
+               "                 [ delay TIME [ JITTER [ CORRELATION ] ] ]\n"
                "                 [ distribution {uniform|normal|pareto|paretonormal} ]\n"
-               "                 [ corrupt PERCENT [CORRELATION]]\n"
-               "                 [ duplicate PERCENT [CORRELATION]]\n"
-               "                 [ loss random PERCENT [CORRELATION]]\n"
-               "                 [ loss state P13 [P31 [P32 [P23 P14]]]\n"
-               "                 [ loss gemodel PERCENT [R [1-H [1-K]]]\n"
+               "                 [ corrupt PERCENT [ CORRELATION ] ]\n"
+               "                 [ duplicate PERCENT [ CORRELATION ] ]\n"
+               "                 [ loss random PERCENT [ CORRELATION ] ]\n"
+               "                 [ loss state P13 [ P31 [ P32 [ P23 [ P14 ] ] ] ] ]\n"
+               "                 [ loss gemodel PERCENT [ R [ 1-H [ 1-K ] ] ] ]\n"
                "                 [ seed SEED ]\n"
                "                 [ ecn ]\n"
-               "                 [ reorder PERCENT [CORRELATION] [ gap DISTANCE ]]\n"
-               "                 [ rate RATE [PACKETOVERHEAD] [CELLSIZE] [CELLOVERHEAD]]\n"
-               "                 [ slot MIN_DELAY [MAX_DELAY] [packets MAX_PACKETS] [bytes MAX_BYTES]]\n"
+               "                 [ reorder PERCENT [ CORRELATION ] [ gap DISTANCE ] ]\n"
+               "                 [ rate RATE [ PACKETOVERHEAD ] [ CELLSIZE ] [ CELLOVERHEAD ] ]\n"
+               "                 [ slot MIN_DELAY [ MAX_DELAY ] [ packets MAX_PACKETS ] [ bytes MAX_BYTES ] ]\n"
                "                 [ slot distribution {uniform|normal|pareto|paretonormal|custom}\n"
-               "                   DELAY JITTER [packets MAX_PACKETS] [bytes MAX_BYTES]]\n");
+               "                   DELAY JITTER [ packets MAX_PACKETS ] [ bytes MAX_BYTES ] ]\n");
 }
 
 static void explain1(const char *arg)