]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
dcb: ets: Fix help display for "show" subcommand
authorPetr Machata <me@pmachata.org>
Thu, 10 Dec 2020 23:02:16 +0000 (00:02 +0100)
committerDavid Ahern <dsahern@gmail.com>
Mon, 14 Dec 2020 16:41:19 +0000 (16:41 +0000)
"dcb ets show dev X help" currently shows full "ets" help instead of just
help for the show command. Fix it.

Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
dcb/dcb_ets.c

index 1735885aa8ed16ff31418ea069a27dc5e0e469ad..94c6019e8095eed6d9e9a8607f94586431959122 100644 (file)
@@ -370,7 +370,7 @@ static int dcb_cmd_ets_show(struct dcb *dcb, const char *dev, int argc, char **a
 
        do {
                if (matches(*argv, "help") == 0) {
-                       dcb_ets_help();
+                       dcb_ets_help_show();
                        return 0;
                } else if (matches(*argv, "willing") == 0) {
                        dcb_ets_print_willing(&ets);
@@ -404,7 +404,7 @@ static int dcb_cmd_ets_show(struct dcb *dcb, const char *dev, int argc, char **a
                        print_nl();
                } else {
                        fprintf(stderr, "What is \"%s\"?\n", *argv);
-                       dcb_ets_help();
+                       dcb_ets_help_show();
                        return -EINVAL;
                }