Message ID | 20180906210117.203461-1-caleb.raitto@gmail.com |
---|---|
State | Accepted, archived |
Delegated to: | stephen hemminger |
Headers | show |
Series | [iproute2,v2] tc/mqprio: Print extra info on invalid args. | expand |
On Thu, 6 Sep 2018 14:01:17 -0700 Caleb Raitto <caleb.raitto@gmail.com> wrote: > From: Caleb Raitto <caraitto@google.com> > > Print the name of the argument that wasn't understood. > > Signed-off-by: Caleb Raitto <caraitto@google.com> That is simpler, thanks. Applied
diff --git a/tc/q_mqprio.c b/tc/q_mqprio.c index 89b46002..7cd18ae1 100644 --- a/tc/q_mqprio.c +++ b/tc/q_mqprio.c @@ -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++; }