numam-dpdk/lib/stack/stack_pvt.h
Bruce Richardson 99a2dd955f lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on
the directory names. This prefix makes the directory names longer and also
makes it awkward to add features referring to individual libraries in the
build - should the lib names be specified with or without the prefix.
Therefore, we can just remove the library prefix and use the library's
unique name as the directory name, i.e. 'eal' rather than 'librte_eal'

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2021-04-21 14:04:09 +02:00

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_ */