From: Ferruh Yigit Date: Tue, 19 Jun 2018 01:04:57 +0000 (+0100) Subject: eal: do not enable static log macro for ethdev X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=64bd384be40a2e311edb2e609e019303a7f6189a;p=dpdk.git eal: do not enable static log macro for ethdev static logging macro RTE_PMD_DEBUG_TRACE is enabled with a few DEBUG config options, including RTE_LIBRTE_ETHDEV_DEBUG RTE_LIBRTE_ETHDEV_DEBUG is still used for data path logging, but all ethdev logging switched to dynamic logging, so no need to enable static logging macro for ethdev. Signed-off-by: Ferruh Yigit Acked-by: Shahaf Shuler Acked-by: Thomas Monjalon --- diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 3879ff3cac..ba6e445fcd 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -69,8 +69,7 @@ rte_pmd_debug_trace(const char *func_name, const char *fmt, ...) * Enable RTE_PMD_DEBUG_TRACE() when at least one component relying on the * RTE_*_RET() macros defined below is compiled in debug mode. */ -#if defined(RTE_LIBRTE_ETHDEV_DEBUG) || \ - defined(RTE_LIBRTE_CRYPTODEV_DEBUG) || \ +#if defined(RTE_LIBRTE_CRYPTODEV_DEBUG) || \ defined(RTE_LIBRTE_EVENTDEV_DEBUG) #define RTE_PMD_DEBUG_TRACE(...) \ rte_pmd_debug_trace(__func__, __VA_ARGS__)