1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019-2020 Intel Corporation
14 extern int igc_logtype_init;
15 extern int igc_logtype_driver;
17 #define PMD_INIT_LOG(level, fmt, args...) \
18 rte_log(RTE_LOG_ ## level, igc_logtype_init, \
19 "%s(): " fmt "\n", __func__, ##args)
21 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
23 #ifdef RTE_LIBRTE_IGC_DEBUG_RX
24 #define PMD_RX_LOG(level, fmt, args...) \
25 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
27 #define PMD_RX_LOG(level, fmt, args...) do { } while (0)
30 #ifdef RTE_LIBRTE_IGC_DEBUG_TX
31 #define PMD_TX_LOG(level, fmt, args...) \
32 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
34 #define PMD_TX_LOG(level, fmt, args...) do { } while (0)
37 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
38 rte_log(RTE_LOG_ ## level, igc_logtype_driver, "%s(): " fmt, \
41 #define PMD_DRV_LOG(level, fmt, args...) \
42 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
48 #endif /* _IGC_LOGS_H_ */