1 /* SPDX-License-Identifier: BSD-3-Clause
10 extern int dpaax_logger;
12 #define DPAAX_LOG(level, fmt, args...) \
13 rte_log(RTE_LOG_ ## level, dpaax_logger, "dpaax: " fmt "\n", \
16 /* Debug logs are with Function names */
17 #define DPAAX_DEBUG(fmt, args...) \
18 rte_log(RTE_LOG_DEBUG, dpaax_logger, "dpaax: %s(): " fmt "\n", \
21 #define DPAAX_INFO(fmt, args...) \
22 DPAAX_LOG(INFO, fmt, ## args)
23 #define DPAAX_ERR(fmt, args...) \
24 DPAAX_LOG(ERR, fmt, ## args)
25 #define DPAAX_WARN(fmt, args...) \
26 DPAAX_LOG(WARNING, fmt, ## args)
28 /* DP Logs, toggled out at compile time if level lower than current level */
29 #define DPAAX_DP_LOG(level, fmt, args...) \
30 RTE_LOG_DP(level, PMD, fmt, ## args)
32 #define DPAAX_DP_DEBUG(fmt, args...) \
33 DPAAX_DP_LOG(DEBUG, fmt, ## args)
34 #define DPAAX_DP_INFO(fmt, args...) \
35 DPAAX_DP_LOG(INFO, fmt, ## args)
36 #define DPAAX_DP_WARN(fmt, args...) \
37 DPAAX_DP_LOG(WARNING, fmt, ## args)
39 #endif /* _DPAAX_LOGS_H_ */