zebra: Fix up cherry-pick mistake

I forgot to include the if (IS_ZEBRA_DEBUG_EVENT) test
This commit is contained in:
Donald Sharp 2016-08-18 10:15:01 -04:00
parent 169d94f7aa
commit c85d435bd7

View File

@ -145,9 +145,10 @@ zebra_redistribute (struct zserv *client, int type, u_short instance, vrf_id_t v
for (rn = route_top (table); rn; rn = route_next (rn))
RNODE_FOREACH_RIB (rn, newrib)
{
zlog_debug("%s: checking: selected=%d, type=%d, distance=%d, zebra_check_addr=%d",
__func__, CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED),
newrib->type, newrib->distance, zebra_check_addr (&rn->p));
if (IS_ZEBRA_DEBUG_EVENT)
zlog_debug("%s: checking: selected=%d, type=%d, distance=%d, zebra_check_addr=%d",
__func__, CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED),
newrib->type, newrib->distance, zebra_check_addr (&rn->p));
if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)
&& newrib->type == type