1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2019 Intel Corporation 3 */ 4 5 #ifndef _STACK_PVT_H_ 6 #define _STACK_PVT_H_ 7 8 #include <rte_log.h> 9 10 extern int stack_logtype; 11 #define RTE_LOGTYPE_STACK stack_logtype 12 13 #define STACK_LOG(level, fmt, args...) \ 14 RTE_LOG_LINE(level, STACK, "%s(): "fmt, __func__, ##args) 15 16 #define STACK_LOG_ERR(fmt, args...) \ 17 STACK_LOG(ERR, fmt, ## args) 18 19 #define STACK_LOG_WARN(fmt, args...) \ 20 STACK_LOG(WARNING, fmt, ## args) 21 22 #define STACK_LOG_INFO(fmt, args...) \ 23 STACK_LOG(INFO, fmt, ## args) 24 25 #endif /* _STACK_PVT_H_ */ 26