net/hns3: fix typos on comments
[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 extern int vmxnet3_logtype_init;
9 #define PMD_INIT_LOG(level, fmt, args...) \
10         rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \
11                 "%s(): " fmt "\n", __func__, ## args)
12 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
13
14 #ifdef RTE_LIBRTE_VMXNET3_DEBUG_RX
15 #define PMD_RX_LOG(level, fmt, args...) \
16         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
17 #else
18 #define PMD_RX_LOG(level, fmt, args...) do { } while(0)
19 #endif
20
21 #ifdef RTE_LIBRTE_VMXNET3_DEBUG_TX
22 #define PMD_TX_LOG(level, fmt, args...) \
23         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
24 #else
25 #define PMD_TX_LOG(level, fmt, args...) do { } while(0)
26 #endif
27
28 #ifdef RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE
29 #define PMD_TX_FREE_LOG(level, fmt, args...) \
30         RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
31 #else
32 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
33 #endif
34
35 extern int vmxnet3_logtype_driver;
36 #define PMD_DRV_LOG(level, fmt, args...) \
37         rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \
38                 "%s(): " fmt "\n", __func__, ## args)
39
40 #endif /* _VMXNET3_LOGS_H_ */