]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Cleanup nexthop debugging
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 29 Nov 2016 15:35:43 +0000 (10:35 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:17 +0000 (20:26 -0500)
When debugging nexthops, we print allot of unnecessary data
Move some debugs to trace detail to reduce log clutter.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_rpf.c
pimd/pim_zlookup.c

index 24ed621a0d04d77857b021951b114d8786267f51..914395e596cf372a9de69c58311c053749a9f47c 100644 (file)
@@ -137,7 +137,7 @@ int pim_nexthop_lookup(struct pim_nexthop *nexthop, struct in_addr addr, int nei
           struct pim_neighbor *nbr;
 
           nbr = pim_neighbor_find (ifp, nexthop_tab[i].nexthop_addr.u.prefix4);
-          if (PIM_DEBUG_ZEBRA)
+          if (PIM_DEBUG_PIM_TRACE_DETAIL)
             zlog_debug ("ifp name: %s, pim nbr: %p", ifp->name, nbr);
           if (!nbr && !if_is_loopback (ifp))
             i++;
index 53fd0ce071ce776c349d89401e2736eb6c378960..1ed724d7dec693325bfa4e13d0d9389d4e691c9f 100644 (file)
@@ -164,7 +164,7 @@ static int zclient_read_nexthop(struct zclient *zlookup,
   int nexthop_num;
   int i, err;
 
-  if (PIM_DEBUG_ZEBRA) {
+  if (PIM_DEBUG_PIM_TRACE_DETAIL) {
     char addr_str[INET_ADDRSTRLEN];
     pim_inet4_dump("<addr?>", addr, addr_str, sizeof(addr_str));
     zlog_debug("%s: addr=%s", 
@@ -283,7 +283,7 @@ zclient_lookup_nexthop_once (struct pim_zlookup_nexthop nexthop_tab[],
   struct stream *s;
   int ret;
 
-  if (PIM_DEBUG_ZEBRA) {
+  if (PIM_DEBUG_PIM_TRACE_DETAIL) {
     char addr_str[INET_ADDRSTRLEN];
     pim_inet4_dump("<addr?>", addr, addr_str, sizeof(addr_str));
     zlog_debug("%s: addr=%s",