From: David Marchand Date: Wed, 17 Sep 2014 13:46:50 +0000 (+0200) Subject: e1000: always log init messages X-Git-Tag: spdx-start~10402 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5b790c6bcb6caa909ac8e228b2c604bcf94e0d64;p=dpdk.git e1000: always log init messages 'init' messages should always be logged and filtered at runtime by rte_log. All the more so as these messages are not in the datapath. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- diff --git a/lib/librte_pmd_e1000/e1000_logs.h b/lib/librte_pmd_e1000/e1000_logs.h index 4dd7208498..4a92804fdf 100644 --- a/lib/librte_pmd_e1000/e1000_logs.h +++ b/lib/librte_pmd_e1000/e1000_logs.h @@ -34,12 +34,13 @@ #ifndef _E1000_LOGS_H_ #define _E1000_LOGS_H_ -#ifdef RTE_LIBRTE_E1000_DEBUG_INIT #define PMD_INIT_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \ + "PMD: %s(): " fmt "\n", __func__, ##args) + +#ifdef RTE_LIBRTE_E1000_DEBUG_INIT #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") #else -#define PMD_INIT_LOG(level, fmt, args...) do { } while (0) #define PMD_INIT_FUNC_TRACE() do { } while (0) #endif