tc/mqprio: Print extra info on invalid args.
Subsystems (2)
PATCH v2 1/1 tc/mqprio: Print extra info on invalid args.
From: Caleb Raitto <[email protected]>
Print the name of the argument that wasn't understood.
Signed-off-by Caleb Raitto <[email protected]>
--- tc/q_mqprio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tc/q_mqprio.c +1 -2
@@ -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++; }
Signature · 1 line
2.19.0.rc2.392.g5ba43deb5a-goog
Quoted 5 lines · On Thu, 6 Sep 2018 14:01:17 -0700 Caleb Raitto <[email protected]> wrote:
From: Caleb Raitto <[email protected]>
Print the name of the argument that wasn't understood.
Signed-off-by Caleb Raitto <[email protected]>
That is simpler, thanks. Applied