summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-03-10 02:04:26 +0100
committerDonald Sharp <sharpd@nvidia.com>2021-03-10 02:04:26 +0100
commit0490a45f7c994ee37ddb42677815cd5a0078691a (patch)
tree5bbe3fdc151e9fe66032e320b508b42f52f45cb9 /ripngd
parentwatchfrr: Convert to not use warning in warning messages (diff)
downloadfrr-0490a45f7c994ee37ddb42677815cd5a0078691a.tar.xz
frr-0490a45f7c994ee37ddb42677815cd5a0078691a.zip
ripngd: Convet to using internal printf modifiers
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripngd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index a9f570598..37e23046e 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -351,8 +351,6 @@ void ripng_packet_dump(struct ripng_packet *packet, int size,
static void ripng_nexthop_rte(struct rte *rte, struct sockaddr_in6 *from,
struct ripng_nexthop *nexthop)
{
- char buf[INET6_BUFSIZ];
-
/* Logging before checking RTE. */
if (IS_RIPNG_DEBUG_RECV)
zlog_debug("RIPng nexthop RTE address %s tag %" ROUTE_TAG_PRI
@@ -398,9 +396,8 @@ static void ripng_nexthop_rte(struct rte *rte, struct sockaddr_in6 *from,
information is ignored, a possibly sub-optimal, but absolutely
valid, route may be taken. If the received next hop address is not
a link-local address, it should be treated as 0:0:0:0:0:0:0:0. */
- zlog_warn("RIPng nexthop RTE with non link-local address %s from %s",
- inet6_ntoa(rte->addr),
- inet_ntop(AF_INET6, &from->sin6_addr, buf, INET6_BUFSIZ));
+ zlog_warn("RIPng nexthop RTE with non link-local address %s from %pI6",
+ inet6_ntoa(rte->addr), &from->sin6_addr);
nexthop->flag = RIPNG_NEXTHOP_UNSPEC;
memset(&nexthop->address, 0, sizeof(struct in6_addr));