From: Shuanglin Wang <[email protected]>

Resolved the build failure when building dpdk with the extra c flag:
-DTF_FLOW_SCALE_QUERY. The issue is caused by the new debug code
in DPDK 24.11.

Signed-off-by: Shuanglin Wang <[email protected]>
Reviewed-by: Kishore Padmanabha <[email protected]>
---
 drivers/net/bnxt/tf_core/tf_resources.c     |  2 +-
 drivers/net/bnxt/tf_core/v3/tfc_resources.c | 12 +++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/net/bnxt/tf_core/tf_resources.c 
b/drivers/net/bnxt/tf_core/tf_resources.c
index b3174ba1af..3219d61cab 100644
--- a/drivers/net/bnxt/tf_core/tf_resources.c
+++ b/drivers/net/bnxt/tf_core/tf_resources.c
@@ -535,7 +535,7 @@ void tf_resc_usage_update_all(struct bnxt *bp)
 
        tfp = bnxt_ulp_bp_tfp_get(bp, BNXT_ULP_SESSION_TYPE_DEFAULT);
        if (!tfp || !tfp->session) {
-               BNXT_DRV_DBG(ERR, "Failed to get truflow or session pointer\n");
+               BNXT_DRV_DBG(ERR, "Failed to get truflow or session pointer");
                return;
        }
 
diff --git a/drivers/net/bnxt/tf_core/v3/tfc_resources.c 
b/drivers/net/bnxt/tf_core/v3/tfc_resources.c
index 5fa6d113ca..44b7a0afcb 100644
--- a/drivers/net/bnxt/tf_core/v3/tfc_resources.c
+++ b/drivers/net/bnxt/tf_core/v3/tfc_resources.c
@@ -59,14 +59,16 @@ tfc_query_resc_usage(struct tfc *tfcp, enum cfa_dir dir)
 
        rc = tfo_sid_get(tfcp->tfo, &sid);
        if (rc) {
-               PMD_DRV_LOG_LINE(ERR, "Failed to retrieve SID, rc:%s\n",
-                                strerror(-rc));
+               PMD_DRV_LOG_LINE(ERR, "%s: Failed to retrieve SID, rc:%s",
+                                __func__, strerror(-rc));
                return rc;
        }
        tfc_msg_resc_usage_query(tfcp, sid, dir, &data_size, &stats_info);
        PMD_DRV_LOG_LINE(ERR,
-                        "dir:%s, %d - %d %d(1-slice) - %d %d(2-slices) - 
%d(4-slices) - %d(unused row) - %d(used_slices)\n",
-                        dir ? "TX" : "RX", stats_info.max_slices,
+                        "%s: dir:%s, %d - %d %d(1-slice) - %d %d(2-slices) - 
%d(4-slices) - %d(unused row) - %d(used_slices)",
+                        __func__,
+                        dir ? "TX" : "RX",
+                        stats_info.max_slices,
                         stats_info.row_1_slice_p_used,
                         stats_info.row_1_slice_f_used,
                         stats_info.row_2_slice_p_used,
@@ -86,7 +88,7 @@ void tfc_resc_usage_query_all(struct bnxt *bp)
 
        tfcp = bnxt_ulp_cntxt_tfcp_get(bp->ulp_ctx);
        if (!tfcp) {
-               BNXT_DRV_DBG(ERR, "Failed to get truflow pointer\n");
+               BNXT_DRV_DBG(ERR, "Failed to get truflow pointer");
                return;
        }
 
-- 
2.39.5 (Apple Git-154)

Reply via email to