2019-04-03 23:20:13 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
2019-10-22 00:19:45 +00:00
|
|
|
#ifndef _STACK_PVT_H_
|
|
|
|
#define _STACK_PVT_H_
|
2019-04-03 23:20:13 +00:00
|
|
|
|
|
|
|
#include <rte_log.h>
|
|
|
|
|
|
|
|
extern int stack_logtype;
|
|
|
|
|
|
|
|
#define STACK_LOG(level, fmt, args...) \
|
|
|
|
rte_log(RTE_LOG_ ##level, stack_logtype, "%s(): "fmt "\n", \
|
|
|
|
__func__, ##args)
|
|
|
|
|
|
|
|
#define STACK_LOG_ERR(fmt, args...) \
|
|
|
|
STACK_LOG(ERR, fmt, ## args)
|
|
|
|
|
|
|
|
#define STACK_LOG_WARN(fmt, args...) \
|
|
|
|
STACK_LOG(WARNING, fmt, ## args)
|
|
|
|
|
|
|
|
#define STACK_LOG_INFO(fmt, args...) \
|
|
|
|
STACK_LOG(INFO, fmt, ## args)
|
|
|
|
|
2019-10-22 00:19:45 +00:00
|
|
|
#endif /* _STACK_PVT_H_ */
|