1 /* SPDX-License-Identifier: BSD-3-Clause
5 #ifndef __DPAA2_QDMA_LOGS_H__
6 #define __DPAA2_QDMA_LOGS_H__
12 extern int dpaa2_qdma_logtype;
14 #define DPAA2_QDMA_LOG(level, fmt, args...) \
15 rte_log(RTE_LOG_ ## level, dpaa2_qdma_logtype, "dpaa2_qdma: " \
18 #define DPAA2_QDMA_DEBUG(fmt, args...) \
19 rte_log(RTE_LOG_DEBUG, dpaa2_qdma_logtype, "dpaa2_qdma: %s(): " \
20 fmt "\n", __func__, ## args)
22 #define DPAA2_QDMA_FUNC_TRACE() DPAA2_QDMA_DEBUG(">>")
24 #define DPAA2_QDMA_INFO(fmt, args...) \
25 DPAA2_QDMA_LOG(INFO, fmt, ## args)
26 #define DPAA2_QDMA_ERR(fmt, args...) \
27 DPAA2_QDMA_LOG(ERR, fmt, ## args)
28 #define DPAA2_QDMA_WARN(fmt, args...) \
29 DPAA2_QDMA_LOG(WARNING, fmt, ## args)
31 /* DP Logs, toggled out at compile time if level lower than current level */
32 #define DPAA2_QDMA_DP_LOG(level, fmt, args...) \
33 RTE_LOG_DP(level, PMD, "dpaa2_qdma: " fmt "\n", ## args)
35 #define DPAA2_QDMA_DP_DEBUG(fmt, args...) \
36 DPAA2_QDMA_DP_LOG(DEBUG, fmt, ## args)
37 #define DPAA2_QDMA_DP_INFO(fmt, args...) \
38 DPAA2_QDMA_DP_LOG(INFO, fmt, ## args)
39 #define DPAA2_QDMA_DP_WARN(fmt, args...) \
40 DPAA2_QDMA_DP_LOG(WARNING, fmt, ## args)
46 #endif /* __DPAA2_QDMA_LOGS_H__ */