2019-06-25 11:12:58 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2010-2018 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IFPGA_LOGS_H_
|
|
|
|
#define _IFPGA_LOGS_H_
|
|
|
|
|
|
|
|
#include <rte_log.h>
|
|
|
|
|
|
|
|
extern int ifpga_bus_logtype;
|
|
|
|
|
2025-01-10 11:50:43 +00:00
|
|
|
#define IFPGA_LOG(level, fmt, args...) \
|
|
|
|
rte_log(RTE_LOG_ ## level, ifpga_bus_logtype, "%s(): " fmt "\n", \
|
|
|
|
__func__, ##args)
|
|
|
|
|
2019-06-25 11:12:58 +00:00
|
|
|
#define IFPGA_BUS_LOG(level, fmt, args...) \
|
|
|
|
rte_log(RTE_LOG_ ## level, ifpga_bus_logtype, "%s(): " fmt "\n", \
|
|
|
|
__func__, ##args)
|
|
|
|
|
|
|
|
#define IFPGA_BUS_FUNC_TRACE() IFPGA_BUS_LOG(DEBUG, ">>")
|
|
|
|
|
|
|
|
#define IFPGA_BUS_DEBUG(fmt, args...) \
|
|
|
|
IFPGA_BUS_LOG(DEBUG, fmt, ## args)
|
|
|
|
#define IFPGA_BUS_INFO(fmt, args...) \
|
|
|
|
IFPGA_BUS_LOG(INFO, fmt, ## args)
|
|
|
|
#define IFPGA_BUS_ERR(fmt, args...) \
|
|
|
|
IFPGA_BUS_LOG(ERR, fmt, ## args)
|
|
|
|
#define IFPGA_BUS_WARN(fmt, args...) \
|
|
|
|
IFPGA_BUS_LOG(WARNING, fmt, ## args)
|
|
|
|
|
|
|
|
#endif /* _IFPGA_BUS_LOGS_H_ */
|