[dpdk-dev] [PATCH v6 3/4] log: catch invalid level option number

David Marchand david.marchand at redhat.com
Tue Apr 6 16:35:11 CEST 2021


On Tue, Apr 6, 2021 at 3:12 PM Thomas Monjalon <thomas at monjalon.net> wrote:
>
> The parsing check for invalid log level was not trying to catch
> irrelevant numeric values.
> A log level 0 becomes a failure in parsing so it can be caught early.
> A log level higher than the max (8) is accepted with a warning message.
>
> 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