From: Donald Sharp Date: Tue, 21 Aug 2018 13:06:02 +0000 (-0400) Subject: ospfd: Convert ospf_asbr.c to use error-codes subsystem X-Git-Tag: frr-7.1-dev~371^2~12 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=78912b1f80bbf49638858605308ea4a148873860;p=mirror%2Ffrr.git ospfd: Convert ospf_asbr.c to use error-codes subsystem Signed-off-by: Donald Sharp --- diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c index 8e8f655305..da5f485ef7 100644 --- a/ospfd/ospf_asbr.c +++ b/ospfd/ospf_asbr.c @@ -135,11 +135,12 @@ ospf_external_info_add(struct ospf *ospf, uint8_t type, unsigned short instance, inet_ntop(AF_INET, (void *)&nexthop.s_addr, inetbuf, INET6_BUFSIZ); - zlog_warn( - "Redistribute[%s][%d][%u]: %s/%d discarding old info with NH %s.", - ospf_redist_string(type), instance, - ospf->vrf_id, inet_ntoa(p.prefix), p.prefixlen, - inetbuf); + if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) + zlog_debug( + "Redistribute[%s][%d][%u]: %s/%d discarding old info with NH %s.", + ospf_redist_string(type), instance, + ospf->vrf_id, inet_ntoa(p.prefix), p.prefixlen, + inetbuf); XFREE(MTYPE_OSPF_EXTERNAL_INFO, rn->info); rn->info = NULL; }