net/sfc/base: report correct partition write chunk size
[dpdk.git] / drivers / net / e1000 / e1000_logs.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4
5 #ifndef _E1000_LOGS_H_
6 #define _E1000_LOGS_H_
7
8 #define PMD_INIT_LOG(level, fmt, args...) \
9         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
10
11 #ifdef RTE_LIBRTE_E1000_DEBUG_INIT
12 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
13 #else
14 #define PMD_INIT_FUNC_TRACE() do { } while (0)
15 #endif
16
17 #ifdef RTE_LIBRTE_E1000_DEBUG_RX
18 #define PMD_RX_LOG(level, fmt, args...) \
19         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
20 #else
21 #define PMD_RX_LOG(level, fmt, args...) do { } while(0)
22 #endif
23
24 #ifdef RTE_LIBRTE_E1000_DEBUG_TX
25 #define PMD_TX_LOG(level, fmt, args...) \
26         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
27 #else
28 #define PMD_TX_LOG(level, fmt, args...) do { } while(0)
29 #endif
30
31 #ifdef RTE_LIBRTE_E1000_DEBUG_TX_FREE
32 #define PMD_TX_FREE_LOG(level, fmt, args...) \
33         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
34 #else
35 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
36 #endif
37
38 #ifdef RTE_LIBRTE_E1000_DEBUG_DRIVER
39 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
40         RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args)
41 #else
42 #define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0)
43 #endif
44
45 #define PMD_DRV_LOG(level, fmt, args...) \
46         PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
47
48 #endif /* _E1000_LOGS_H_ */