2021-02-05 08:48:47 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*
|
2022-09-06 04:00:10 +00:00
|
|
|
* Copyright(c) 2019-2021 Xilinx, Inc.
|
2021-02-05 08:48:47 +00:00
|
|
|
* Copyright(c) 2019 Solarflare Communications Inc.
|
|
|
|
*
|
|
|
|
* This software was jointly developed between OKTET Labs (under contract
|
|
|
|
* for Solarflare) and Solarflare Communications, Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SFC_EFX_LOG_H_
|
|
|
|
#define _SFC_EFX_LOG_H_
|
|
|
|
|
|
|
|
/** Generic driver log type */
|
|
|
|
extern uint32_t sfc_efx_logtype;
|
|
|
|
|
|
|
|
/** Log message, add a prefix and a line break */
|
|
|
|
#define SFC_EFX_LOG(level, ...) \
|
|
|
|
rte_log(RTE_LOG_ ## level, sfc_efx_logtype, \
|
|
|
|
RTE_FMT("sfc_efx: " RTE_FMT_HEAD(__VA_ARGS__ ,) "\n", \
|
|
|
|
RTE_FMT_TAIL(__VA_ARGS__ ,)))
|
|
|
|
|
|
|
|
#endif /* _SFC_EFX_LOG_H_ */
|