1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
8 extern int ixgbe_logtype_init;
9 #define PMD_INIT_LOG(level, fmt, args...) \
10 rte_log(RTE_LOG_ ## level, ixgbe_logtype_init, \
11 "%s(): " fmt "\n", __func__, ##args)
13 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
15 #ifdef RTE_LIBRTE_IXGBE_DEBUG_RX
16 #define PMD_RX_LOG(level, fmt, args...) \
17 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
19 #define PMD_RX_LOG(level, fmt, args...) do { } while(0)
22 #ifdef RTE_LIBRTE_IXGBE_DEBUG_TX
23 #define PMD_TX_LOG(level, fmt, args...) \
24 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
26 #define PMD_TX_LOG(level, fmt, args...) do { } while(0)
29 #ifdef RTE_LIBRTE_IXGBE_DEBUG_TX_FREE
30 #define PMD_TX_FREE_LOG(level, fmt, args...) \
31 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
33 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
36 extern int ixgbe_logtype_driver;
37 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
38 rte_log(RTE_LOG_ ## level, ixgbe_logtype_driver, "%s(): " fmt, \
41 #define PMD_DRV_LOG(level, fmt, args...) \
42 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
44 #endif /* _IXGBE_LOGS_H_ */