]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: add back one field for debug 17082/head
authoranlan_cs <anlan_cs@126.com>
Sun, 13 Oct 2024 13:26:02 +0000 (21:26 +0800)
committeranlan_cs <anlan_cs@126.com>
Sun, 13 Oct 2024 13:30:46 +0000 (21:30 +0800)
The `flags` field is removed recently, so add back it for debug.

Signed-off-by: anlan_cs <anlan_cs@126.com>
zebra/interface.c

index d146004781a53ad0edd20eafa2f0c18d3167344d..f1f1b17209a7253845305fbbb75ca82f0059e048 100644 (file)
@@ -1999,10 +1999,9 @@ static void zebra_if_dplane_ifp_handling(struct zebra_dplane_ctx *ctx)
                    !CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) {
                        /* Add interface notification from kernel */
                        if (IS_ZEBRA_DEBUG_KERNEL)
-                               zlog_debug(
-                                       "RTM_NEWLINK ADD for %s(%u) vrf_id %u type %d sl_type %d master %u",
-                                       name, ifindex, vrf_id, zif_type,
-                                       zif_slave_type, master_ifindex);
+                               zlog_debug("RTM_NEWLINK ADD for %s(%u) vrf_id %u type %d sl_type %d master %u flags 0x%llx",
+                                          name, ifindex, vrf_id, zif_type, zif_slave_type,
+                                          master_ifindex, (unsigned long long)flags);
 
                        if (ifp == NULL) {
                                /* unknown interface */
@@ -2087,10 +2086,9 @@ static void zebra_if_dplane_ifp_handling(struct zebra_dplane_ctx *ctx)
 
                        /* Interface update. */
                        if (IS_ZEBRA_DEBUG_KERNEL)
-                               zlog_debug(
-                                       "RTM_NEWLINK update for %s(%u) sl_type %d master %u",
-                                       name, ifp->ifindex, zif_slave_type,
-                                       master_ifindex);
+                               zlog_debug("RTM_NEWLINK update for %s(%u) sl_type %d master %u flags 0x%llx",
+                                          name, ifp->ifindex, zif_slave_type, master_ifindex,
+                                          (unsigned long long)flags);
 
                        set_ifindex(ifp, ifindex, zns);
                        ifp->mtu6 = ifp->mtu = mtu;