]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc/mqprio: Print extra info on invalid args.
authorCaleb Raitto <caraitto@google.com>
Thu, 6 Sep 2018 21:01:17 +0000 (14:01 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 10 Sep 2018 19:14:00 +0000 (12:14 -0700)
Print the name of the argument that wasn't understood.

Signed-off-by: Caleb Raitto <caraitto@google.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/q_mqprio.c

index 89b460020e27ea8e63e07c2d98eff04ef5819ac3..7cd18ae152e1516f2103f2dca70d38c09560bf8b 100644 (file)
@@ -167,8 +167,7 @@ static int mqprio_parse_opt(struct qdisc_util *qu, int argc,
                        explain();
                        return -1;
                } else {
-                       fprintf(stderr, "Unknown argument\n");
-                       return -1;
+                       invarg("unknown argument", *argv);
                }
                argc--; argv++;
        }