From: Donald Sharp Date: Wed, 7 Sep 2016 19:43:17 +0000 (-0400) Subject: pimd: Fix unguarded log message X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~236 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4a4c0d0c551749fdb94e73447990d36067b09c89;p=mirror%2Ffrr.git pimd: Fix unguarded log message 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 --- diff --git a/pimd/pim_rpf.c b/pimd/pim_rpf.c index f3bdb68305..6b4dd111e7 100644 --- a/pimd/pim_rpf.c +++ b/pimd/pim_rpf.c @@ -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_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 */