2 * Copyright (c) 2013-2015 Brocade Communications Systems, Inc.
10 #define PMD_INIT_LOG(level, fmt, args...) \
11 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
13 #ifdef RTE_LIBRTE_BNX2X_DEBUG_INIT
14 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
16 #define PMD_INIT_FUNC_TRACE() do { } while(0)
19 #ifdef RTE_LIBRTE_BNX2X_DEBUG_RX
20 #define PMD_RX_LOG(level, fmt, args...) \
21 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
23 #define PMD_RX_LOG(level, fmt, args...) do { } while(0)
26 #ifdef RTE_LIBRTE_BNX2X_DEBUG_TX
27 #define PMD_TX_LOG(level, fmt, args...) \
28 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
30 #define PMD_TX_LOG(level, fmt, args...) do { } while(0)
33 #ifdef RTE_LIBRTE_BNX2X_DEBUG_TX_FREE
34 #define PMD_TX_FREE_LOG(level, fmt, args...) \
35 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
37 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
40 #ifdef RTE_LIBRTE_BNX2X_DEBUG_DRIVER
41 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
42 RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args)
44 #define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0)
47 #define PMD_DRV_LOG(level, fmt, args...) \
48 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
50 #endif /* _PMD_LOGS_H_ */