From: Stephen Worley Date: Thu, 28 Mar 2019 19:18:28 +0000 (-0400) Subject: zebra: Make kernel debug nexthop standardized X-Git-Tag: base_7.3~219^2~122 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fdee485ad02197b9ef020b0a25d09cbb4e639b06;p=matthieu%2Ffrr.git zebra: Make kernel debug nexthop standardized 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 --- diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index ea81d180db..3e377eb770 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -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) {