[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180905202419.238812-1-caleb.raitto@gmail.com>
Date: Wed, 5 Sep 2018 13:24:19 -0700
From: Caleb Raitto <caleb.raitto@...il.com>
To: stephen@...workplumber.org, netdev@...r.kernel.org
Cc: jhs@...atatu.com, xiyou.wangcong@...il.com, jiri@...nulli.us,
Caleb Raitto <caraitto@...gle.com>
Subject: [PATCH iproute2] tc/mqprio: Print extra info on invalid args.
From: Caleb Raitto <caraitto@...gle.com>
Print the name of the argument that wasn't understood, and also print
the usage string.
Signed-off-by: Caleb Raitto <caraitto@...gle.com>
---
tc/q_mqprio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tc/q_mqprio.c b/tc/q_mqprio.c
index 89b46002..cf2eceb4 100644
--- a/tc/q_mqprio.c
+++ b/tc/q_mqprio.c
@@ -167,7 +167,8 @@ static int mqprio_parse_opt(struct qdisc_util *qu, int argc,
explain();
return -1;
} else {
- fprintf(stderr, "Unknown argument\n");
+ fprintf(stderr, "Unknown argument: %s\n", *argv);
+ explain();
return -1;
}
argc--; argv++;
--
2.19.0.rc1.350.ge57e33dbd1-goog
Powered by blists - more mailing lists