1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
10 extern int e1000_logtype_init;
11 #define PMD_INIT_LOG(level, fmt, args...) \
12 rte_log(RTE_LOG_ ## level, e1000_logtype_init, \
13 "%s(): " fmt "\n", __func__, ##args)
15 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
17 #ifdef RTE_LIBRTE_E1000_DEBUG_RX
18 #define PMD_RX_LOG(level, fmt, args...) \
19 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
21 #define PMD_RX_LOG(level, fmt, args...) do { } while(0)
24 #ifdef RTE_LIBRTE_E1000_DEBUG_TX
25 #define PMD_TX_LOG(level, fmt, args...) \
26 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
28 #define PMD_TX_LOG(level, fmt, args...) do { } while(0)
31 #ifdef RTE_LIBRTE_E1000_DEBUG_TX_FREE
32 #define PMD_TX_FREE_LOG(level, fmt, args...) \
33 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
35 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
38 extern int e1000_logtype_driver;
39 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
40 rte_log(RTE_LOG_ ## level, e1000_logtype_driver, "%s(): " fmt, \
43 #define PMD_DRV_LOG(level, fmt, args...) \
44 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
47 /* log init function shared by e1000 and igb drivers */
48 void e1000_igb_init_log(void);
50 #endif /* _E1000_LOGS_H_ */