From e0512833d4acc6d037fa0ce8d453584618b98019 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Mon, 5 Apr 2021 21:33:24 +0200 Subject: [PATCH] app/regex: fix usage text The usage syntax help includes the program name which was fake. It is replaced with the real name from argv. Fixes: de06137cb295 ("app/regex: add RegEx test application") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon Acked-by: Ori Kam Acked-by: Bruce Richardson Acked-by: Andrew Rybchenko Acked-by: David Marchand --- app/test-regex/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-regex/main.c b/app/test-regex/main.c index 18a22db533..8e665df73c 100644 --- a/app/test-regex/main.c +++ b/app/test-regex/main.c @@ -159,10 +159,10 @@ args_parse(int argc, char **argv, char *rules_file, char *data_file, *nb_segs = atoi(optarg); break; case ARG_HELP: - usage("RegEx test app"); + usage(argv[0]); break; default: - usage("RegEx test app"); + usage(argv[0]); rte_exit(EXIT_FAILURE, "Invalid option: %s\n", argv[optind]); break; } -- 2.20.1