diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-27 00:39:54 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-22 02:26:10 +0100 |
commit | 05ca4827a61512d6fdb4def75d24cf94121a6396 (patch) | |
tree | f07942de92bf2c9949818405cc95bec43950c4c9 /pimd/pim_join.c | |
parent | pimd: Fix 'show ip mroute count' (diff) | |
download | frr-05ca4827a61512d6fdb4def75d24cf94121a6396.tar.xz frr-05ca4827a61512d6fdb4def75d24cf94121a6396.zip |
pimd: Remove some more unprotected warnings/debugs
Pim is outputting a bunch of unprotected debugs.
In a system with a high # of events even with
no logging we will receive lots of messages.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_join.c')
-rw-r--r-- | pimd/pim_join.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c index 3de438917..c92be18dd 100644 --- a/pimd/pim_join.c +++ b/pimd/pim_join.c @@ -202,11 +202,14 @@ static void recv_prune(struct interface *ifp, struct pim_ifchannel *ch = pim_ifchannel_find (ifp, &child->sg); struct pim_interface *pim_ifp = ifp->info; - char buff[100]; - strcpy (buff, pim_str_sg_dump (&up->sg)); - zlog_debug("%s %s: Prune(S,G)=%s from %s", - __FILE__, __PRETTY_FUNCTION__, - buff, pim_str_sg_dump (&child->sg)); + if (PIM_DEBUG_PIM_TRACE) + { + char buff[100]; + strcpy (buff, pim_str_sg_dump (&up->sg)); + zlog_debug("%s %s: Prune(S,G)=%s from %s", + __FILE__, __PRETTY_FUNCTION__, + buff, pim_str_sg_dump (&child->sg)); + } if (!pim_upstream_evaluate_join_desired (child)) pim_channel_del_oif (c_oil, ifp, PIM_OIF_FLAG_PROTO_PIM); |