tc/mqprio: Print extra info on invalid args.

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>
This commit is contained in:
Caleb Raitto 2018-09-06 14:01:17 -07:00 committed by Stephen Hemminger
parent ae775666cf
commit 40c2916fda
1 changed files with 1 additions and 2 deletions

View 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++;
}