common/cnxk: update NIX and NPA dump function
PATCH 1/1 common/cnxk: update NIX and NPA dump function
Updates nix_dump and npa_dump to use plt_dump function.
Signed-off-by Rahul Bhansali <[email protected]>
--- drivers/common/cnxk/roc_nix_debug.c | 4 ++-- drivers/common/cnxk/roc_npa_debug.c | 2 +- drivers/common/cnxk/roc_platform.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-)
drivers/common/cnxk/roc_nix_debug.c +2 -2
@@ -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_nlstruct nix_lf_reg_info {uint32_t offset;
drivers/common/cnxk/roc_npa_debug.c +1 -1
@@ -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_dumpstatic inline void npa_pool_dump(__io struct npa_pool_s *pool)
drivers/common/cnxk/roc_platform.h +1 -0
@@ -204,6 +204,7 @@ extern int cnxk_logtype_tm; #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.
Signature · 1 line
2.25.1
Quoted 4 lines · Rahul Bhansali
Updates
nix_dumpandnpa_dumpto useplt_dumpfunction.Signed-off-by Rahul Bhansali <[email protected]>
Acked-by Jerin Jacob <[email protected]>
Applied to dpdk-next-net-mrvl/for-next-net. Thanks
Quoted 55 lines
--- drivers/common/cnxk/roc_nix_debug.c | 4 ++-- drivers/common/cnxk/roc_npa_debug.c | 2 +- drivers/common/cnxk/roc_platform.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-)drivers/common/cnxk/roc_nix_debug.c +2
-2@@ -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_nlstruct nix_lf_reg_info {uint32_t offset;drivers/common/cnxk/roc_npa_debug.c +1
-1@@ -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_dumpstatic inline void npa_pool_dump(__io struct npa_pool_s *pool)drivers/common/cnxk/roc_platform.h +1
-1@@ -204,6 +204,7 @@ extern int cnxk_logtype_tm; #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. -- 2.25.1