1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Intel Corporation
5 #ifndef _IPN3KE_LOGS_H_
6 #define _IPN3KE_LOGS_H_
10 extern int ipn3ke_afu_logtype;
12 #define IPN3KE_AFU_PMD_LOG(level, fmt, args...) \
13 rte_log(RTE_LOG_ ## level, ipn3ke_afu_logtype, "%s(): " fmt "\n", \
16 #define IPN3KE_AFU_PMD_FUNC_TRACE() IPN3KE_AFU_PMD_LOG(DEBUG, ">>")
18 #define IPN3KE_AFU_PMD_DEBUG(fmt, args...) \
19 IPN3KE_AFU_PMD_LOG(DEBUG, fmt, ## args)
21 #define IPN3KE_AFU_PMD_INFO(fmt, args...) \
22 IPN3KE_AFU_PMD_LOG(INFO, fmt, ## args)
24 #define IPN3KE_AFU_PMD_ERR(fmt, args...) \
25 IPN3KE_AFU_PMD_LOG(ERR, fmt, ## args)
27 #define IPN3KE_AFU_PMD_WARN(fmt, args...) \
28 IPN3KE_AFU_PMD_LOG(WARNING, fmt, ## args)
30 #endif /* _IPN3KE_LOGS_H_ */