1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2013-2017 Wind River Systems, Inc.
10 #ifdef RTE_LIBRTE_AVP_DEBUG_RX
11 #define PMD_RX_LOG(level, fmt, args...) \
12 RTE_LOG(level, PMD, "%s() rx: " fmt, __func__, ## args)
14 #define PMD_RX_LOG(level, fmt, args...) do { } while (0)
17 #ifdef RTE_LIBRTE_AVP_DEBUG_TX
18 #define PMD_TX_LOG(level, fmt, args...) \
19 RTE_LOG(level, PMD, "%s() tx: " fmt, __func__, ## args)
21 #define PMD_TX_LOG(level, fmt, args...) do { } while (0)
24 extern int avp_logtype_driver;
26 #define PMD_DRV_LOG(level, fmt, args...) \
27 rte_log(RTE_LOG_ ## level, avp_logtype_driver, \
28 "%s(): " fmt, __func__, ## args)
30 #endif /* _AVP_LOGS_H_ */