[PATCH v3 29/37] raw/dpaa2_cmdif: replace PMD logtype with rte_log_dp
Stephen Hemminger
stephen at networkplumber.org
Wed Dec 13 17:36:03 CET 2023
Use local logtype for datapath logs.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/raw/dpaa2_cmdif/dpaa2_cmdif_logs.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/raw/dpaa2_cmdif/dpaa2_cmdif_logs.h b/drivers/raw/dpaa2_cmdif/dpaa2_cmdif_logs.h
index 8991e8327d68..7cb423c7a57b 100644
--- a/drivers/raw/dpaa2_cmdif/dpaa2_cmdif_logs.h
+++ b/drivers/raw/dpaa2_cmdif/dpaa2_cmdif_logs.h
@@ -30,7 +30,8 @@ extern int dpaa2_cmdif_logtype;
/* DP Logs, toggled out at compile time if level lower than current level */
#define DPAA2_CMDIF_DP_LOG(level, fmt, args...) \
- RTE_LOG_DP(level, PMD, "dpaa2_cmdif: " fmt "\n", ## args)
+ rte_log_dp(RTE_LOG_ ## level, dpaa2_cmdif_logtype, \
+ "dpaa2_cmdif: " fmt "\n", ## args)
#define DPAA2_CMDIF_DP_DEBUG(fmt, args...) \
DPAA2_CMDIF_DP_LOG(DEBUG, fmt, ## args)
--
2.43.0
More information about the dev
mailing list