]> git.proxmox.com Git - mirror_frr.git/blobdiff - ldpd/keepalive.c
ldpd: replace inet_ntoa
[mirror_frr.git] / ldpd / keepalive.c
index ba5f2233162da9637c3def43eeee0a09beb679df..b03127109f4867aa1ebd35a421f02708856b9cef 100644 (file)
@@ -37,7 +37,7 @@ send_keepalive(struct nbr *nbr)
        size -= LDP_HDR_SIZE;
        gen_msg_hdr(buf, MSG_TYPE_KEEPALIVE, size);
 
-       debug_kalive_send("keepalive: lsr-id %s", inet_ntoa(nbr->id));
+       debug_kalive_send("keepalive: lsr-id %pI4", &nbr->id);
 
        evbuf_enqueue(&nbr->tcp->wbuf, buf);
        nbr->stats.kalive_sent++;
@@ -54,7 +54,7 @@ recv_keepalive(struct nbr *nbr, char *buf, uint16_t len)
                return (-1);
        }
 
-       debug_kalive_recv("keepalive: lsr-id %s", inet_ntoa(nbr->id));
+       debug_kalive_recv("keepalive: lsr-id %pI4", &nbr->id);
 
        if (nbr->state != NBR_STA_OPER)
                nbr_fsm(nbr, NBR_EVT_KEEPALIVE_RCVD);