7a33572057
The private headers are compiled internally with a C compiler. Thus extern "C" declaration is useless in such files. Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
26 lines
544 B
C
26 lines
544 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _STACK_PVT_H_
|
|
#define _STACK_PVT_H_
|
|
|
|
#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)
|
|
|
|
#endif /* _STACK_PVT_H_ */
|