[dpdk-dev] [PATCH v2] pktgen: fix sequence help message
Ivan Dyukov
i.dyukov at samsung.com
Mon Jan 20 18:11:34 CET 2020
pktgen cli does not show sequence help if it's wrong or incomplete
Signed-off-by: Ivan Dyukov <i.dyukov at samsung.com>
---
app/cli-functions.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/app/cli-functions.c b/app/cli-functions.c
index f104781..f43d23e 100644
--- a/app/cli-functions.c
+++ b/app/cli-functions.c
@@ -1309,7 +1309,8 @@ seq_cmd(int argc, char **argv)
m = cli_mapping(seq_map, argc, argv);
if (!m)
- return cli_cmd_error("Sequence invalid command", "Seq", argc, argv);
+ return cli_cmd_error("Sequence invalid command",
+ "Sequence", argc, argv);
switch(m->index) {
case 10:
@@ -1320,7 +1321,9 @@ seq_cmd(int argc, char **argv)
case 16:
case 17: seq_4_set_cmd(argc, argv); break;
default:
- return cli_cmd_error("Sequence invalid command", "Seq", argc, argv);
+ return cli_cmd_error(
+ "Sequence invalid command", "Sequence",
+ argc, argv);
}
return 0;
}
--
2.17.1
More information about the dev
mailing list