log: introduce macro for maximum level
authorThomas Monjalon <thomas@monjalon.net>
Thu, 8 Apr 2021 16:47:11 +0000 (18:47 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 9 Apr 2021 10:56:09 +0000 (12:56 +0200)
commit806d888a809b128c8fe2c35201f01b991c2a3da0
treef20a2079686f28e8abeab84407c591602a494e1c
parent867bb637aef1499703a168f1a5ea1a1ce030f429
log: introduce macro for maximum level

RTE_DIM(...) and RTE_LOG_DEBUG were used to get the highest log level.
For better clarity a new constant RTE_LOG_MAX is introduced
and mapped to RTE_LOG_DEBUG.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/include/rte_log.h