[dpdk-dev] [PATCH v7 4/4] log: add option argument help

David Marchand david.marchand at redhat.com
Fri Apr 9 11:31:35 CEST 2021


On Thu, Apr 8, 2021 at 6:47 PM 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>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>

Reviewed-by: David Marchand <david.marchand at redhat.com>

-- 
David Marchand



More information about the dev mailing list