]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/lib/librte_stack/stack_pvt.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_stack / stack_pvt.h
CommitLineData
9f95a23c
TL
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Intel Corporation
3 */
4
f67539c2
TL
5#ifndef _STACK_PVT_H_
6#define _STACK_PVT_H_
9f95a23c
TL
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <rte_log.h>
13
14extern 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
f67539c2 34#endif /* _STACK_PVT_H_ */