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