[PATCH] app/testpmd: fix incorrect function names in logs
Anurag Mandal
anurag.mandal at intel.com
Mon Dec 1 11:08:36 CET 2025
VLAN extend and tpid setting functions have wrong function names
mentioned in the error logs causing confusion as functions are
not found in code using those names.
Replaced static names with dynamic "__func__" predefined identifier.
Fixes: 61a3b0e5e79f ("app/testpmd: send failure logs to stderr")
Cc: stable at dpdk.org
Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
---
app/test-pmd/config.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 6ea506254b..afaf9194ba 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -6502,8 +6502,8 @@ vlan_extend_set(portid_t port_id, int on)
diag = rte_eth_dev_set_vlan_offload(port_id, vlan_offload);
if (diag < 0) {
fprintf(stderr,
- "rx_vlan_extend_set(port_pi=%d, on=%d) failed diag=%d\n",
- port_id, on, diag);
+ "%s(port_pi=%d, on=%d) failed diag=%d\n",
+ __func__, port_id, on, diag);
return;
}
ports[port_id].dev_conf.rxmode.offloads = port_rx_offloads;
@@ -6729,8 +6729,8 @@ vlan_tpid_set(portid_t port_id, enum rte_vlan_type vlan_type, uint16_t tp_id)
return;
fprintf(stderr,
- "tx_vlan_tpid_set(port_pi=%d, vlan_type=%d, tpid=%d) failed diag=%d\n",
- port_id, vlan_type, tp_id, diag);
+ "%s(port_pi=%d, vlan_type=%d, tpid=%d) failed diag=%d\n",
+ __func__, port_id, vlan_type, tp_id, diag);
}
void
--
2.43.0
More information about the dev
mailing list