]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Make kernel debug nexthop standardized
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 28 Mar 2019 19:18:28 +0000 (15:18 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:38 +0000 (11:13 -0400)
Make the the kernel debug zlog for nexthop messages from the
kernel more aligned with the route message kernel debug zlog.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/rt_netlink.c

index ea81d180db52f3a923ad59445231d49710becc80..3e377eb770ab393260e2837d77d8da7197802e51 100644 (file)
@@ -2322,14 +2322,16 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
        /* We use the ID key'd nhg table for kernel updates */
        id = *((uint32_t *)RTA_DATA(tb[NHA_ID]));
 
-       if (IS_ZEBRA_DEBUG_KERNEL) {
-               zlog_debug("Nexthop ID (%u) update from the kernel", id);
-       }
-
        family = nhm->nh_family;
 
        afi = family2afi(family);
 
+       if (IS_ZEBRA_DEBUG_KERNEL)
+               zlog_debug("%s ID (%u) %s NS %u",
+                          nl_msg_type_to_str(h->nlmsg_type), id,
+                          nl_family_to_str(family), ns_id);
+
+
        nhe = zebra_nhg_lookup_id(id);
 
        if (h->nlmsg_type == RTM_NEWNEXTHOP) {