From c2d8b7c790f11a12311b62458b6f59fc7f91ddb4 Mon Sep 17 00:00:00 2001 From: Yaacov Hazan Date: Sun, 6 Dec 2015 15:13:29 +0200 Subject: [PATCH] ethdev: fix debug macro RTE_PMD_DEBUG_TRACE was changed also to support pedantic flag, but not completely. the macro changed only under the RTE_LIBRTE_ETHDEV_DEBUG define, but when RTE_LIBRTE_ETHDEV_DEBUG is not defined the old format was left. fix the macro to support pedantic flag in any case. Fixes: b974e4a40cb5 ("ethdev: make error checking macros public") Signed-off-by: Yaacov Hazan --- lib/librte_ether/rte_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 1ff29e2263..bada8ade0d 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -938,7 +938,7 @@ TAILQ_HEAD(rte_eth_dev_cb_list, rte_eth_dev_callback); #define RTE_PMD_DEBUG_TRACE(...) \ rte_pmd_debug_trace(__func__, __VA_ARGS__) #else -#define RTE_PMD_DEBUG_TRACE(fmt, args...) +#define RTE_PMD_DEBUG_TRACE(...) #endif -- 2.20.1