]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix debug messages 2371/head
authorMartin Buck <martin.buck@ruag.com>
Mon, 4 Jun 2018 12:27:48 +0000 (14:27 +0200)
committerMartin Buck <martin.buck@ruag.com>
Mon, 4 Jun 2018 12:27:48 +0000 (14:27 +0200)
Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
pimd/pim_rp.c
pimd/pim_rpf.c

index 45d3452d7127b36f794b672086acaeeb99373777..a8cf58cd363df3242b1f6c76940d651027b973bb 100644 (file)
@@ -702,9 +702,9 @@ void pim_rp_setup(struct pim_instance *pim)
                                        "%s: NHT Local Nexthop not found for RP %s ",
                                        __PRETTY_FUNCTION__, buf);
                        }
-                       if (!pim_nexthop_lookup(
+                       if (pim_nexthop_lookup(
                                    pim, &rp_info->rp.source_nexthop,
-                                   rp_info->rp.rpf_addr.u.prefix4, 1))
+                                   rp_info->rp.rpf_addr.u.prefix4, 1) < 0)
                                if (PIM_DEBUG_PIM_NHT_RP)
                                        zlog_debug(
                                                "Unable to lookup nexthop for rp specified");
index 221c1ee4af54868da005d182e69d011405bc9740..010db79395eae51f58c4fe07630da5ed9a4d7f89 100644 (file)
@@ -77,7 +77,7 @@ int pim_nexthop_lookup(struct pim_instance *pim, struct pim_nexthop *nexthop,
                        pim_addr_dump("<nexthop?>", &nexthop->mrib_nexthop_addr,
                                      nexthop_str, sizeof(nexthop_str));
                        zlog_debug(
-                               "%s: Using last lookup for %s at %lld, %" PRId64 " addr%s",
+                               "%s: Using last lookup for %s at %lld, %" PRId64 " addr %s",
                                __PRETTY_FUNCTION__, addr_str,
                                nexthop->last_lookup_time,
                                pim->last_route_change_time, nexthop_str);