diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-03-10 13:25:49 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-03-10 13:25:49 +0100 |
commit | b6c4848171b1c4cb7f290038089fb2d005495023 (patch) | |
tree | bdd9bc57f1ff2e52858f53a07fe7d03274c5cfcc /nhrpd/nhrp_vc.c | |
parent | ripd: Convert to using internal printf formatters (diff) | |
download | frr-b6c4848171b1c4cb7f290038089fb2d005495023.tar.xz frr-b6c4848171b1c4cb7f290038089fb2d005495023.zip |
nhrpd: Use our built-in printf functionality
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'nhrpd/nhrp_vc.c')
-rw-r--r-- | nhrpd/nhrp_vc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nhrpd/nhrp_vc.c b/nhrpd/nhrp_vc.c index 6567b231a..d538163e9 100644 --- a/nhrpd/nhrp_vc.c +++ b/nhrpd/nhrp_vc.c @@ -100,7 +100,6 @@ static void nhrp_vc_ipsec_reset(struct nhrp_vc *vc) int nhrp_vc_ipsec_updown(uint32_t child_id, struct nhrp_vc *vc) { - char buf[2][SU_ADDRSTRLEN]; struct child_sa *sa = NULL, *lsa; uint32_t child_hash = child_id % array_size(childlist_head); int abort_migration = 0; @@ -140,10 +139,8 @@ int nhrp_vc_ipsec_updown(uint32_t child_id, struct nhrp_vc *vc) if (sa->vc && vc) { /* Notify old VC of migration */ sa->vc->abort_migration = 0; - debugf(NHRP_DEBUG_COMMON, "IPsec NBMA change of %s to %s", - sockunion2str(&sa->vc->remote.nbma, buf[0], - sizeof(buf[0])), - sockunion2str(&vc->remote.nbma, buf[1], sizeof(buf[1]))); + debugf(NHRP_DEBUG_COMMON, "IPsec NBMA change of %pSU to %pSU", + &sa->vc->remote.nbma, &vc->remote.nbma); nhrp_vc_update(sa->vc, NOTIFY_VC_IPSEC_UPDATE_NBMA); abort_migration = sa->vc->abort_migration; } |