]> git.droids-corp.org - dpdk.git/commitdiff
common/cnxk: update NIX and NPA dump functions
authorRahul Bhansali <rbhansali@marvell.com>
Mon, 20 Dec 2021 13:26:25 +0000 (18:56 +0530)
committerJerin Jacob <jerinj@marvell.com>
Sun, 23 Jan 2022 13:17:31 +0000 (14:17 +0100)
Updates nix_dump and npa_dump to use plt_dump function.

Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_nix_debug.c
drivers/common/cnxk/roc_npa_debug.c
drivers/common/cnxk/roc_platform.h

index 583e2e43c85cb93d18c7676b0c8f6f52f2e0be10..d5143882f5888cd0663d85ed0c5bbc1e31728f73 100644 (file)
@@ -5,14 +5,14 @@
 #include "roc_api.h"
 #include "roc_priv.h"
 
-#define nix_dump(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
+#define nix_dump plt_dump
 #define NIX_REG_INFO(reg)                                                      \
        {                                                                      \
                reg, #reg                                                      \
        }
 #define NIX_REG_NAME_SZ 48
 
-#define nix_dump_no_nl(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
+#define nix_dump_no_nl plt_dump_no_nl
 
 struct nix_lf_reg_info {
        uint32_t offset;
index 421c2af8a512280b44184ace2a85f590f93b2e84..798ace291c847ce85fb406ad0f2905becc16db56 100644 (file)
@@ -5,7 +5,7 @@
 #include "roc_api.h"
 #include "roc_priv.h"
 
-#define npa_dump(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
+#define npa_dump plt_dump
 
 static inline void
 npa_pool_dump(__io struct npa_pool_s *pool)
index 68f29fe48e8da8109f3623c3a9966d5a56e9e239..adfb88c68dc80b26e53aa4944e1b1b6f0a121469 100644 (file)
@@ -213,6 +213,7 @@ extern int cnxk_logtype_ree;
 #define plt_warn(fmt, args...) RTE_LOG(WARNING, PMD, fmt "\n", ##args)
 #define plt_print(fmt, args...) RTE_LOG(INFO, PMD, fmt "\n", ##args)
 #define plt_dump(fmt, ...)      fprintf(stderr, fmt "\n", ##__VA_ARGS__)
+#define plt_dump_no_nl(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
 
 /**
  * Log debug message if given subsystem logging is enabled.