1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
8 extern int ice_logtype_init;
9 extern int ice_logtype_driver;
11 #define PMD_INIT_LOG(level, fmt, args...) \
12 rte_log(RTE_LOG_ ## level, ice_logtype_init, "%s(): " fmt "\n", \
15 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
17 #ifdef RTE_LIBRTE_ICE_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_ICE_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_ICE_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 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
39 rte_log(RTE_LOG_ ## level, ice_logtype_driver, "%s(): " fmt, \
42 #define PMD_DRV_LOG(level, fmt, args...) \
43 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
45 #endif /* _ICE_LOGS_H_ */