summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/lib/librte_stack/stack_pvt.h
blob: ecf40819c5dfdcf843d09f00875a25df492e43e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2019 Intel Corporation
 */

#ifndef _STACK_PVT_H_
#define _STACK_PVT_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <rte_log.h>

extern int stack_logtype;

#define STACK_LOG(level, fmt, args...) \
	rte_log(RTE_LOG_ ##level, stack_logtype, "%s(): "fmt "\n", \
		__func__, ##args)

#define STACK_LOG_ERR(fmt, args...) \
	STACK_LOG(ERR, fmt, ## args)

#define STACK_LOG_WARN(fmt, args...) \
	STACK_LOG(WARNING, fmt, ## args)

#define STACK_LOG_INFO(fmt, args...) \
	STACK_LOG(INFO, fmt, ## args)


#ifdef __cplusplus
}
#endif

#endif /* _STACK_PVT_H_ */