@@ -265,11 +265,13 @@ extern int cnxk_logtype_tm;
265265extern int cnxk_logtype_ree ;
266266extern int cnxk_logtype_dpi ;
267267
268+ #define RTE_LOGTYPE_CNXK cnxk_logtype_base
269+
268270#define plt_err (fmt , args ...) \
269- RTE_LOG(ERR, PMD , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
270- #define plt_info (fmt , args ...) RTE_LOG(INFO, PMD , fmt "\n", ##args)
271- #define plt_warn (fmt , args ...) RTE_LOG(WARNING, PMD , fmt "\n", ##args)
272- #define plt_print (fmt , args ...) RTE_LOG(INFO, PMD , fmt "\n", ##args)
271+ RTE_LOG(ERR, CNXK , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
272+ #define plt_info (fmt , args ...) RTE_LOG(INFO, CNXK , fmt "\n", ##args)
273+ #define plt_warn (fmt , args ...) RTE_LOG(WARNING, CNXK , fmt "\n", ##args)
274+ #define plt_print (fmt , args ...) RTE_LOG(INFO, CNXK , fmt "\n", ##args)
273275#define plt_dump (fmt , ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
274276#define plt_dump_no_nl (fmt , ...) fprintf(stderr, fmt, ##__VA_ARGS__)
275277
@@ -296,11 +298,11 @@ extern int cnxk_logtype_dpi;
296298
297299/* Datapath logs */
298300#define plt_dp_err (fmt , args ...) \
299- RTE_LOG_DP(ERR, PMD , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
301+ RTE_LOG_DP(ERR, CNXK , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
300302#define plt_dp_info (fmt , args ...) \
301- RTE_LOG_DP(INFO, PMD , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
303+ RTE_LOG_DP(INFO, CNXK , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
302304#define plt_dp_dbg (fmt , args ...) \
303- RTE_LOG_DP(DEBUG, PMD , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
305+ RTE_LOG_DP(DEBUG, CNXK , "%s():%u " fmt "\n", __func__, __LINE__, ##args)
304306
305307#ifdef __cplusplus
306308#define CNXK_PCI_ID (subsystem_dev , dev ) \
0 commit comments