[dpdk-dev] [PATCH 05/11] eal: introduce maximum log level macro

Thomas Monjalon thomas at monjalon.net
Wed Mar 10 13:46:24 CET 2021


10/03/2021 00:31, Thomas Monjalon:
> --- a/lib/librte_eal/common/eal_common_options.c
> +++ b/lib/librte_eal/common/eal_common_options.c
> @@ -1249,7 +1249,7 @@ eal_parse_log_priority(const char *level)
>  		return -1;
>  
>  	/* look for named values, skip 0 which is not a valid level */
> -	for (i = 1; i < RTE_DIM(levels); i++) {
> +	for (i = 1; i < RTE_LOG_MAX; i++) {

Bug: it should be <=





More information about the dev mailing list