eigrpd: Convert to using our builtin printf stuff

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-03-10 12:52:24 -05:00 committed by David Lamparter
parent 6b73800ba2
commit 4f278784d6
2 changed files with 4 additions and 12 deletions

View File

@ -572,17 +572,11 @@ int eigrp_read(struct thread *thread)
/* If incoming interface is passive one, ignore it. */
if (eigrp_if_is_passive(ei)) {
char buf[3][INET_ADDRSTRLEN];
if (IS_DEBUG_EIGRP_TRANSMIT(0, RECV))
zlog_debug(
"ignoring packet from router %s sent to %s, received on a passive interface, %s",
inet_ntop(AF_INET, &eigrph->vrid, buf[0],
sizeof(buf[0])),
inet_ntop(AF_INET, &iph->ip_dst, buf[1],
sizeof(buf[1])),
inet_ntop(AF_INET, &ei->address.u.prefix4,
buf[2], sizeof(buf[2])));
"ignoring packet from router %pI4 sent to %pI4, received on a passive interface, %pI4",
&eigrph->vrid, &iph->ip_dst,
&ei->address.u.prefix4);
if (iph->ip_dst.s_addr == htonl(EIGRP_MULTICAST_ADDRESS)) {
eigrp_if_set_multicast(ei);

View File

@ -231,9 +231,7 @@ void eigrp_zebra_route_add(struct eigrp *eigrp, struct prefix *p,
api.nexthop_num = count;
if (IS_DEBUG_EIGRP(zebra, ZEBRA_REDISTRIBUTE)) {
char buf[PREFIX_STRLEN];
zlog_debug("Zebra: Route add %pFX nexthop %s", p,
inet_ntop(AF_INET, 0, buf, PREFIX_STRLEN));
zlog_debug("Zebra: Route add %pFX", p);
}
zclient_route_send(ZEBRA_ROUTE_ADD, zclient, &api);