]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix unguarded log message
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 7 Sep 2016 19:43:17 +0000 (15:43 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:08 +0000 (20:26 -0500)
In pim_rpf.c when we receive multiple paths for the
rpf we are complaining that we are not sure what
to do with it yet.  Change the _info to _debug
and don't print out unless we are debugging
stuff.

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

index f3bdb683051ed52fa43dd0d53d3cabae40e0a862..6b4dd111e778ddf23142d640e0a423cb96c04d5b 100644 (file)
@@ -60,10 +60,10 @@ int pim_nexthop_lookup(struct pim_nexthop *nexthop, struct in_addr addr)
 
   first_ifindex = nexthop_tab[0].ifindex;
 
-  if (num_ifindex > 1) {
+  if (num_ifindex > 1 && PIM_DEBUG_ZEBRA) {
     char addr_str[100];
     pim_inet4_dump("<addr?>", addr, addr_str, sizeof(addr_str));
-    zlog_info("%s %s: FIXME ignoring multiple nexthop ifindex'es num_ifindex=%d for address %s (using only ifindex=%d)",
+    zlog_debug("%s %s: Ignoring multiple nexthop ifindex'es num_ifindex=%d for address %s (using only ifindex=%d)",
              __FILE__, __PRETTY_FUNCTION__,
              num_ifindex, addr_str, first_ifindex);
     /* debug warning only, do not return */