ospfd: Convert ospf_asbr.c to use error-codes subsystem

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-08-21 09:06:02 -04:00 committed by Quentin Young
parent 733fb9177f
commit 78912b1f80

View File

@ -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, inet_ntop(AF_INET, (void *)&nexthop.s_addr, inetbuf,
INET6_BUFSIZ); INET6_BUFSIZ);
zlog_warn( if (IS_DEBUG_OSPF(lsa, LSA_GENERATE))
"Redistribute[%s][%d][%u]: %s/%d discarding old info with NH %s.", zlog_debug(
ospf_redist_string(type), instance, "Redistribute[%s][%d][%u]: %s/%d discarding old info with NH %s.",
ospf->vrf_id, inet_ntoa(p.prefix), p.prefixlen, ospf_redist_string(type), instance,
inetbuf); ospf->vrf_id, inet_ntoa(p.prefix), p.prefixlen,
inetbuf);
XFREE(MTYPE_OSPF_EXTERNAL_INFO, rn->info); XFREE(MTYPE_OSPF_EXTERNAL_INFO, rn->info);
rn->info = NULL; rn->info = NULL;
} }