2 * Copyright (c) 2013-2015 Brocade Communications Systems, Inc.
4 * Copyright (c) 2015 QLogic Corporation.
8 * See LICENSE.bnx2x_pmd for copyright and licensing details.
14 #define PMD_INIT_LOG(level, fmt, args...) \
15 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
17 #ifdef RTE_LIBRTE_BNX2X_DEBUG_INIT
18 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
20 #define PMD_INIT_FUNC_TRACE() do { } while(0)
23 #ifdef RTE_LIBRTE_BNX2X_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_BNX2X_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 #ifdef RTE_LIBRTE_BNX2X_DEBUG_TX_FREE
38 #define PMD_TX_FREE_LOG(level, fmt, args...) \
39 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
41 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
44 #ifdef RTE_LIBRTE_BNX2X_DEBUG
45 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
46 RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args)
48 #define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0)
51 #define PMD_DRV_LOG(level, fmt, args...) \
52 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
54 #ifdef RTE_LIBRTE_BNX2X_DEBUG_PERIODIC
55 #define PMD_DEBUG_PERIODIC_LOG(level, fmt, args...) \
56 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
58 #define PMD_DEBUG_PERIODIC_LOG(level, fmt, args...) do { } while(0)
62 #endif /* _PMD_LOGS_H_ */