summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/drivers/event/sw/sw_evdev_log.h
blob: f76825abc5d074a36b97d1e2524e2d4987a3a911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2018 Intel Corporation
 */

#ifndef _SW_EVDEV_LOG_H_
#define _SW_EVDEV_LOG_H_

extern int eventdev_sw_log_level;

#define SW_LOG_IMPL(level, fmt, args...) \
	rte_log(RTE_LOG_ ## level, eventdev_sw_log_level, "%s" fmt "\n", \
			__func__, ##args)

#define SW_LOG_INFO(fmt, args...) \
	SW_LOG_IMPL(INFO, fmt, ## args)

#define SW_LOG_DBG(fmt, args...) \
	SW_LOG_IMPL(DEBUG, fmt, ## args)

#define SW_LOG_ERR(fmt, args...) \
	SW_LOG_IMPL(ERR, fmt, ## args)

#endif /* _SW_EVDEV_LOG_H_ */