c7eab4027d932916ea11347ff03c9ac9f3ac2771
[dpdk.git] / lib / stack / stack_pvt.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5 #ifndef _STACK_PVT_H_
6 #define _STACK_PVT_H_
7
8 #include <rte_log.h>
9
10 extern int stack_logtype;
11
12 #define STACK_LOG(level, fmt, args...) \
13         rte_log(RTE_LOG_ ##level, stack_logtype, "%s(): "fmt "\n", \
14                 __func__, ##args)
15
16 #define STACK_LOG_ERR(fmt, args...) \
17         STACK_LOG(ERR, fmt, ## args)
18
19 #define STACK_LOG_WARN(fmt, args...) \
20         STACK_LOG(WARNING, fmt, ## args)
21
22 #define STACK_LOG_INFO(fmt, args...) \
23         STACK_LOG(INFO, fmt, ## args)
24
25 #endif /* _STACK_PVT_H_ */