summaryrefslogtreecommitdiff
path: root/dcb
diff options
context:
space:
mode:
authorPetr Machata <me@pmachata.org>2020-12-11 00:02:16 +0100
committerDavid Ahern <dsahern@gmail.com>2020-12-14 16:41:19 +0000
commit12d41d0184f70cbbc321efcb3668d1e1ff1da18e (patch)
tree73c28159b118681a63b49feb872a17a97002f4d8 /dcb
parent7fe954ee34764eec65ed8b272b4b11c5a36f73a4 (diff)
downloadiproute2-12d41d0184f70cbbc321efcb3668d1e1ff1da18e.tar.gz
dcb: ets: Fix help display for "show" subcommand
"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>
Diffstat (limited to 'dcb')
-rw-r--r--dcb/dcb_ets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dcb/dcb_ets.c b/dcb/dcb_ets.c
index 1735885a..94c6019e 100644
--- a/dcb/dcb_ets.c
+++ b/dcb/dcb_ets.c
@@ -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;
}