DPDK  19.05.0
rte_stack_pvt.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4 
5 #ifndef _RTE_STACK_PVT_H_
6 #define _RTE_STACK_PVT_H_
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include <rte_log.h>
13 
14 extern int stack_logtype;
15 
16 #define STACK_LOG(level, fmt, args...) \
17  rte_log(RTE_LOG_ ##level, stack_logtype, "%s(): "fmt "\n", \
18  __func__, ##args)
19 
20 #define STACK_LOG_ERR(fmt, args...) \
21  STACK_LOG(ERR, fmt, ## args)
22 
23 #define STACK_LOG_WARN(fmt, args...) \
24  STACK_LOG(WARNING, fmt, ## args)
25 
26 #define STACK_LOG_INFO(fmt, args...) \
27  STACK_LOG(INFO, fmt, ## args)
28 
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif /* _RTE_STACK_PVT_H_ */