[dpdk-dev] [PATCH 07/11] eal: add log level help
Stephen Hemminger
stephen at networkplumber.org
Thu Jun 29 18:22:55 CEST 2023
On Wed, 10 Mar 2021 00:31:11 +0100
Thomas Monjalon <thomas at monjalon.net> 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 <thomas at monjalon.net>
In /usr/include/sys/syslog.h are some tables of strings for syslog
values. Not sure how portable this is and across what versions.
More information about the dev
mailing list