2018-01-08 05:25:16 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2017 Cavium, Inc
|
2017-03-03 17:27:49 +00:00
|
|
|
*/
|
|
|
|
|
2017-10-16 13:42:46 +00:00
|
|
|
#ifndef __OCTEONTX_POOL_LOGS_H__
|
|
|
|
#define __OCTEONTX_POOL_LOGS_H__
|
2017-03-03 17:27:49 +00:00
|
|
|
|
2017-10-16 13:42:46 +00:00
|
|
|
#include <rte_debug.h>
|
2017-03-03 17:27:49 +00:00
|
|
|
|
2017-12-19 12:25:08 +00:00
|
|
|
#define FPAVF_LOG(level, fmt, args...) \
|
|
|
|
rte_log(RTE_LOG_ ## level, octeontx_logtype_fpavf,\
|
|
|
|
"%s() line %u: " fmt "\n", __func__, __LINE__, ## args)
|
2017-03-03 17:27:49 +00:00
|
|
|
|
2017-12-19 12:25:08 +00:00
|
|
|
#define fpavf_log_info(fmt, ...) FPAVF_LOG(INFO, fmt, ##__VA_ARGS__)
|
|
|
|
#define fpavf_log_dbg(fmt, ...) FPAVF_LOG(DEBUG, fmt, ##__VA_ARGS__)
|
|
|
|
#define fpavf_log_err(fmt, ...) FPAVF_LOG(ERR, fmt, ##__VA_ARGS__)
|
2017-10-16 13:42:46 +00:00
|
|
|
#define fpavf_func_trace fpavf_log_dbg
|
2017-12-19 12:25:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
extern int octeontx_logtype_fpavf;
|
2017-03-03 17:27:49 +00:00
|
|
|
|
2017-10-16 13:42:46 +00:00
|
|
|
#endif /* __OCTEONTX_POOL_LOGS_H__*/
|