app: fix exit messages
authorThomas Monjalon <thomas@monjalon.net>
Mon, 5 Apr 2021 19:33:23 +0000 (21:33 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 9 Apr 2021 12:31:29 +0000 (14:31 +0200)
commit487cfc24370fdb7ea843aa510d6e6d2a7212dd23
tree906b60ca23f0837c0bca83365bc7290315c57da3
parent3e08081637ca082a8b58d5db2a11836dbe4e3e8c
app: fix exit messages

Some applications were printing useless messages with rte_exit()
after showing the help. Using exit() is enough in this case.

Some applications were using a redundant printf or fprintf() before
calling rte_exit(). The messages are unified in a single rte_exit().

Some rte_exit() calls were missing a line feed or returning a wrong code.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Wisam Jaddo <wisamm@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: David Marchand <david.marchand@redhat.com>
app/test-compress-perf/comp_perf_options_parse.c
app/test-crypto-perf/cperf_options_parsing.c
app/test-flow-perf/main.c
app/test-pmd/parameters.c
app/test-regex/main.c