Re: [dpdk-dev] [PATCH v7 4/4] log: add option argument help
From: Kinsella, Ray <hidden>
Date: 2021-04-13 16:55:46
On 08/04/2021 17:47, Thomas Monjalon wrote:
The option --log-level was not completely described in the usage text, and it was difficult to guess the names of the log types and levels. A new value "help" is accepted after --log-level to give more details about the syntax and listing the log types and levels. The array "levels" used for level name parsing is replaced with a (modified) existing function which was used in rte_log_dump(). The new function rte_log_list_types() is exported in the API for allowing an application to give this info to the user if not exposing the EAL option --log-level. The list of log types cannot include all drivers if not linked in the application (shared object plugin case). Signed-off-by: Thomas Monjalon <redacted> Acked-by: Bruce Richardson <redacted> Acked-by: Andrew Rybchenko <redacted> --- lib/librte_eal/common/eal_common_log.c | 54 ++++++++++++++++++++-- lib/librte_eal/common/eal_common_options.c | 44 ++++++++++++------ lib/librte_eal/common/eal_log.h | 5 ++ lib/librte_eal/include/rte_log.h | 11 +++++ lib/librte_eal/version.map | 1 + 5 files changed, 97 insertions(+), 18 deletions(-)
Acked-by: Ray Kinsella <redacted>