Commit 63801f6ff3 for frr
commit 63801f6ff39f6198ab489e8336d69aa695c2602b
Author: Donald Sharp <sharpd@nvidia.com>
Date: Tue Oct 20 11:31:15 2026 -0400
bfdd: Standardize prefix output, %pFX, in debugs
Currently there are two problems with using %pFX in bfdd
debugs:
a) The vrf name, vrf id and table were not being output for
every debug. When a prefix is used in multiple vrf's it
is difficult to know if the debug being looked at is for
the instance of interest.
b) The output was not standardized. Solidify on
"(%s:%u:%u)%pFX", vrf_name, vrf_id, table_id, prefix. This
allows very easy grepping.
The only %pFX debug is the zebra interface address add/delete
event, which previously printed the vrf id as a trailing
"(VRF %u)". Use the interface's vrf for the name and table id.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
diff --git a/bfdd/ptm_adapter.c b/bfdd/ptm_adapter.c
index 9169728cab..7da3054656 100644
--- a/bfdd/ptm_adapter.c
+++ b/bfdd/ptm_adapter.c
@@ -819,10 +819,10 @@ static int bfdd_interface_address_update(ZAPI_CALLBACK_ARGS)
return 0;
if (bglobal.debug_zebra)
- zlog_debug("zclient: %s local address %pFX (VRF %u)",
- cmd == ZEBRA_INTERFACE_ADDRESS_ADD ? "add"
- : "delete",
- ifc->address, vrf_id);
+ zlog_debug("zclient: %s local address (%s:%u:%u)%pFX",
+ cmd == ZEBRA_INTERFACE_ADDRESS_ADD ? "add" : "delete",
+ ifc->ifp->vrf->name, vrf_id, ifc->ifp->vrf->data.l.table_id,
+ ifc->address);
frrtrace(6, frr_bfd, zebra_address_event, cmd == ZEBRA_INTERFACE_ADDRESS_ADD ? 1 : 2,
ifc->address->family, ifc->ifp->ifindex, vrf_id,