[21/26] common/dpaax: do not use PMD logtype

Message ID 20231213014408.612051-22-stephen@networkplumber.org (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series Replace uses of RTE_LOGTYPE_PMD |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger Dec. 13, 2023, 1:42 a.m. UTC
  Use existing dpaax_logger log type instead of PMD.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/common/dpaax/caamflib/compat.h | 5 ++++-
 drivers/common/dpaax/version.map       | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)
  

Patch

diff --git a/drivers/common/dpaax/caamflib/compat.h b/drivers/common/dpaax/caamflib/compat.h
index 9776eed437ad..64ccdca95058 100644
--- a/drivers/common/dpaax/caamflib/compat.h
+++ b/drivers/common/dpaax/caamflib/compat.h
@@ -40,11 +40,14 @@ 
 #define __maybe_unused __rte_unused
 #endif
 
+extern int dpaax_logger;
+
 #if defined(SUPPRESS_PRINTS)
 #define pr_msg(l, fmt, ...) do { } while (0)
 #else
 #define pr_msg(l, fmt, ...) \
-	RTE_LOG(l, PMD, "%s(): " fmt "\n", __func__, ##__VA_ARGS__)
+	rte_log(RTE_LOG_ ## l, dpaax_logger, "%s(): " fmt "\n", \
+		__func__, ##__VA_ARGS__)
 #endif
 
 #if !defined(pr_debug)
diff --git a/drivers/common/dpaax/version.map b/drivers/common/dpaax/version.map
index ee1ca6801c81..d48a6b6f37ee 100644
--- a/drivers/common/dpaax/version.map
+++ b/drivers/common/dpaax/version.map
@@ -6,6 +6,7 @@  INTERNAL {
 	dpaax_iova_table_p;
 	dpaax_iova_table_populate;
 	dpaax_iova_table_update;
+	dpaax_logger;
 	of_device_is_available;
 	of_device_is_compatible;
 	of_find_compatible_node;