1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
5 #ifndef _SW_EVDEV_LOG_H_
6 #define _SW_EVDEV_LOG_H_
8 extern int eventdev_sw_log_level;
10 #define SW_LOG_IMPL(level, fmt, args...) \
11 rte_log(RTE_LOG_ ## level, eventdev_sw_log_level, "%s" fmt "\n", \
14 #define SW_LOG_INFO(fmt, args...) \
15 SW_LOG_IMPL(INFO, fmt, ## args)
17 #define SW_LOG_DBG(fmt, args...) \
18 SW_LOG_IMPL(DEBUG, fmt, ## args)
20 #define SW_LOG_ERR(fmt, args...) \
21 SW_LOG_IMPL(ERR, fmt, ## args)
23 #endif /* _SW_EVDEV_LOG_H_ */