diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-03-10 16:16:42 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2021-03-14 22:56:07 +0100 |
commit | 6b73800ba27e7f69453a191dfb873c2e07194516 (patch) | |
tree | d2928347f91b3e6b9e21a7ad1e75bac630dd5650 /pimd/pim_msdp_socket.c | |
parent | babeld: We do not need to put Warning into our warning messages (diff) | |
download | frr-6b73800ba27e7f69453a191dfb873c2e07194516.tar.xz frr-6b73800ba27e7f69453a191dfb873c2e07194516.zip |
pimd: Use builtin printf functionality
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | pimd/pim_msdp_socket.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pimd/pim_msdp_socket.c b/pimd/pim_msdp_socket.c index ddd8dc6bf..b613937f5 100644 --- a/pimd/pim_msdp_socket.c +++ b/pimd/pim_msdp_socket.c @@ -67,7 +67,6 @@ static int pim_msdp_sock_accept(struct thread *thread) int accept_sock; int msdp_sock; struct pim_msdp_peer *mp; - char buf[SU_ADDRSTRLEN]; sockunion_init(&su); @@ -96,8 +95,7 @@ static int pim_msdp_sock_accept(struct thread *thread) ++pim->msdp.rejected_accepts; if (PIM_DEBUG_MSDP_EVENTS) { flog_err(EC_PIM_MSDP_PACKET, - "msdp peer connection refused from %s", - sockunion2str(&su, buf, SU_ADDRSTRLEN)); + "msdp peer connection refused from %pSU", &su); } close(msdp_sock); return -1; @@ -113,8 +111,8 @@ static int pim_msdp_sock_accept(struct thread *thread) if (mp->fd >= 0) { if (PIM_DEBUG_MSDP_EVENTS) { zlog_notice( - "msdp peer new connection from %s stop old connection", - sockunion2str(&su, buf, SU_ADDRSTRLEN)); + "msdp peer new connection from %pSU stop old connection", + &su); } pim_msdp_peer_stop_tcp_conn(mp, true /* chg_state */); } |