From fdee485ad02197b9ef020b0a25d09cbb4e639b06 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 28 Mar 2019 15:18:28 -0400 Subject: [PATCH] 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 --- zebra/rt_netlink.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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) {