drivers: use SPDX tag for Intel copyright files
[dpdk.git] / drivers / net / vmxnet3 / vmxnet3_logs.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4
5 #ifndef _VMXNET3_LOGS_H_
6 #define _VMXNET3_LOGS_H_
7
8 #ifdef RTE_LIBRTE_VMXNET3_DEBUG_INIT
9 #define PMD_INIT_LOG(level, fmt, args...) \
10         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
11 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
12 #else
13 #define PMD_INIT_LOG(level, fmt, args...) do { } while(0)
14 #define PMD_INIT_FUNC_TRACE() do { } while(0)
15 #endif
16
17 #ifdef RTE_LIBRTE_VMXNET3_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_VMXNET3_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_VMXNET3_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_VMXNET3_DEBUG_DRIVER
39 #define PMD_DRV_LOG(level, fmt, args...) \
40         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
41 #else
42 #define PMD_DRV_LOG(level, fmt, args...) do { } while(0)
43 #endif
44
45 #endif /* _VMXNET3_LOGS_H_ */