xref: /dpdk/lib/stack/stack_pvt.h (revision daa02b5cddbb8e11b31d41e2bf7bb1ae64dcae2f)
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_ */
26