diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-04-18 01:46:58 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-05-04 15:06:14 +0200 |
commit | 674c29dd23801892001c3cdc1d2c21ac292e2f18 (patch) | |
tree | b4d4f368938df070ae955fa7319ad95ecc43b99c /ospfd | |
parent | ospfd: Fix some deep indentation issues in ospf_asbr.c (diff) | |
download | frr-674c29dd23801892001c3cdc1d2c21ac292e2f18.tar.xz frr-674c29dd23801892001c3cdc1d2c21ac292e2f18.zip |
ospfd: Use %pI4 in some places
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_asbr.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c index ce35e82a1..b022133dc 100644 --- a/ospfd/ospf_asbr.c +++ b/ospfd/ospf_asbr.c @@ -113,7 +113,6 @@ ospf_external_info_add(struct ospf *ospf, uint8_t type, unsigned short instance, struct external_info *new; struct route_node *rn; struct ospf_external *ext; - char inetbuf[INET6_BUFSIZ]; ext = ospf_external_lookup(ospf, type, instance); if (!ext) @@ -130,13 +129,11 @@ ospf_external_info_add(struct ospf *ospf, uint8_t type, unsigned short instance, return NULL; /* NULL => no LSA to refresh */ } - inet_ntop(AF_INET, (void *)&nexthop.s_addr, inetbuf, - sizeof(inetbuf)); if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) zlog_debug( - "Redistribute[%s][%d][%u]: %pFX discarding old info with NH %s.", + "Redistribute[%s][%d][%u]: %pFX discarding old info with NH %pI4.", ospf_redist_string(type), instance, - ospf->vrf_id, &p, inetbuf); + ospf->vrf_id, &p, &nexthop.s_addr); XFREE(MTYPE_OSPF_EXTERNAL_INFO, rn->info); } @@ -154,12 +151,10 @@ ospf_external_info_add(struct ospf *ospf, uint8_t type, unsigned short instance, rn->info = new; if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) { - inet_ntop(AF_INET, (void *)&nexthop.s_addr, inetbuf, - sizeof(inetbuf)); zlog_debug( - "Redistribute[%s][%u]: %pFX external info created, with NH %s", - ospf_redist_string(type), ospf->vrf_id, - &p, inetbuf); + "Redistribute[%s][%u]: %pFX external info created, with NH %pI4", + ospf_redist_string(type), ospf->vrf_id, &p, + &nexthop.s_addr); } return new; } |