drivers: allow pruning log during build
Some drivers was not following DPDK convention and was leaving logging always in even if LOG_LEVEL was configured to disable debug logs. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Bruce Richardson <bruce.richardson@intel.com> [Thomas: apply same fix to i40e, fm10k and bnx2x] Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
parent
fa400b6268
commit
7cf90aeb8d
@ -8,8 +8,7 @@
|
||||
#define _PMD_LOGS_H_
|
||||
|
||||
#define PMD_INIT_LOG(level, fmt, args...) \
|
||||
rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
|
||||
"PMD: %s(): " fmt "\n", __func__, ##args)
|
||||
RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
|
||||
|
||||
#ifdef RTE_LIBRTE_BNX2X_DEBUG_INIT
|
||||
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
|
||||
|
@ -35,8 +35,7 @@
|
||||
#define _E1000_LOGS_H_
|
||||
|
||||
#define PMD_INIT_LOG(level, fmt, args...) \
|
||||
rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
|
||||
"PMD: %s(): " fmt "\n", __func__, ##args)
|
||||
RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
|
||||
|
||||
#ifdef RTE_LIBRTE_E1000_DEBUG_INIT
|
||||
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
|
||||
|
@ -37,8 +37,7 @@
|
||||
#include <rte_log.h>
|
||||
|
||||
#define PMD_INIT_LOG(level, fmt, args...) \
|
||||
rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
|
||||
"PMD: %s(): " fmt "\n", __func__, ##args)
|
||||
RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
|
||||
|
||||
#ifdef RTE_LIBRTE_FM10K_DEBUG_INIT
|
||||
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
|
||||
|
@ -35,8 +35,7 @@
|
||||
#define _I40E_LOGS_H_
|
||||
|
||||
#define PMD_INIT_LOG(level, fmt, args...) \
|
||||
rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
|
||||
"PMD: %s(): " fmt "\n", __func__, ##args)
|
||||
RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
|
||||
|
||||
#ifdef RTE_LIBRTE_I40E_DEBUG_INIT
|
||||
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
|
||||
|
@ -35,8 +35,7 @@
|
||||
#define _IXGBE_LOGS_H_
|
||||
|
||||
#define PMD_INIT_LOG(level, fmt, args...) \
|
||||
rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
|
||||
"PMD: %s(): " fmt "\n", __func__, ##args)
|
||||
RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
|
||||
|
||||
#ifdef RTE_LIBRTE_IXGBE_DEBUG_INIT
|
||||
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
|
||||
|
Loading…
Reference in New Issue
Block a user