Use existing dpaax_logger log type instead of PMD.

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

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;
-- 
2.42.0

Reply via email to