numam-dpdk/drivers/event/dpaa2/dpaa2_eventdev_logs.h
David Marchand 7a18887287 event/dpaa2: remove unused macros
Fixes: 653242c337 ("event/dpaa2: add self test")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
2021-05-09 18:00:07 +02:00

43 lines
1.5 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018-2019 NXP
*/
#ifndef _DPAA2_EVENTDEV_LOGS_H_
#define _DPAA2_EVENTDEV_LOGS_H_
extern int dpaa2_logtype_event;
#define DPAA2_EVENTDEV_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, dpaa2_logtype_event, "dpaa2_event: " \
fmt "\n", ##args)
#define DPAA2_EVENTDEV_DEBUG(fmt, args...) \
rte_log(RTE_LOG_DEBUG, dpaa2_logtype_event, "dpaa2_event: %s(): " \
fmt "\n", __func__, ##args)
#define EVENTDEV_INIT_FUNC_TRACE() DPAA2_EVENTDEV_DEBUG(" >>")
#define DPAA2_EVENTDEV_INFO(fmt, args...) \
DPAA2_EVENTDEV_LOG(INFO, fmt, ## args)
#define DPAA2_EVENTDEV_ERR(fmt, args...) \
DPAA2_EVENTDEV_LOG(ERR, fmt, ## args)
#define DPAA2_EVENTDEV_WARN(fmt, args...) \
DPAA2_EVENTDEV_LOG(WARNING, fmt, ## args)
/* DP Logs, toggled out at compile time if level lower than current level */
#define DPAA2_EVENTDEV_DP_LOG(level, fmt, args...) \
RTE_LOG_DP(level, PMD, fmt, ## args)
#define DPAA2_EVENTDEV_DP_DEBUG(fmt, args...) \
DPAA2_EVENTDEV_DP_LOG(DEBUG, fmt, ## args)
#define DPAA2_EVENTDEV_DP_INFO(fmt, args...) \
DPAA2_EVENTDEV_DP_LOG(INFO, fmt, ## args)
#define DPAA2_EVENTDEV_DP_WARN(fmt, args...) \
DPAA2_EVENTDEV_DP_LOG(WARNING, fmt, ## args)
#define dpaa2_evdev_info(fmt, ...) DPAA2_EVENTDEV_LOG(INFO, fmt, ##__VA_ARGS__)
#define dpaa2_evdev_dbg(fmt, ...) DPAA2_EVENTDEV_LOG(DEBUG, fmt, ##__VA_ARGS__)
#define dpaa2_evdev_err(fmt, ...) DPAA2_EVENTDEV_LOG(ERR, fmt, ##__VA_ARGS__)
#endif /* _DPAA2_EVENTDEV_LOGS_H_ */