b28f28ae80
Some of the internal header files have 'rte_' prefix and some don't. Remove 'rte_' prefix from all internal header files. Suggested-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com> Reviewed-by: Phil Yang <phil.yang@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
35 lines
614 B
C
35 lines
614 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _STACK_PVT_H_
|
|
#define _STACK_PVT_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#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)
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _STACK_PVT_H_ */
|