File: sw_evdev_log.h

package info (click to toggle)
dpdk 25.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 127,892 kB
  • sloc: ansic: 2,358,479; python: 16,426; sh: 4,474; makefile: 1,713; awk: 70
file content (23 lines) | stat: -rw-r--r-- 571 bytes parent folder | download
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 RTE_LOGTYPE_EVENT_SW eventdev_sw_log_level

#define SW_LOG_IMPL(level, ...) \
	RTE_LOG_LINE_PREFIX(level, EVENT_SW, "%s", __func__, __VA_ARGS__)

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

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

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

#endif /* _SW_EVDEV_LOG_H_ */