1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2019 Intel Corporation 3 */ 4 5 #ifndef _IPN3KE_LOGS_H_ 6 #define _IPN3KE_LOGS_H_ 7 8 #include <rte_log.h> 9 10 extern int ipn3ke_afu_logtype; 11 12 #define IPN3KE_AFU_PMD_LOG(level, fmt, args...) \ 13 rte_log(RTE_LOG_ ## level, ipn3ke_afu_logtype, "%s(): " fmt "\n", \ 14 __func__, ##args) 15 16 #define IPN3KE_AFU_PMD_FUNC_TRACE() IPN3KE_AFU_PMD_LOG(DEBUG, ">>") 17 18 #define IPN3KE_AFU_PMD_DEBUG(fmt, args...) \ 19 IPN3KE_AFU_PMD_LOG(DEBUG, fmt, ## args) 20 21 #define IPN3KE_AFU_PMD_INFO(fmt, args...) \ 22 IPN3KE_AFU_PMD_LOG(INFO, fmt, ## args) 23 24 #define IPN3KE_AFU_PMD_ERR(fmt, args...) \ 25 IPN3KE_AFU_PMD_LOG(ERR, fmt, ## args) 26 27 #define IPN3KE_AFU_PMD_WARN(fmt, args...) \ 28 IPN3KE_AFU_PMD_LOG(WARNING, fmt, ## args) 29 30 #endif /* _IPN3KE_LOGS_H_ */ 31