diff --git a/src/route_ping.c b/src/route_ping.c index 68ef6ffc..4b9e7a5c 100644 --- a/src/route_ping.c +++ b/src/route_ping.c @@ -344,9 +344,9 @@ int route_ping_send_req_addr(struct ROUTE_BGP* bgp, struct ETCP_CONN* to_conn, u pending->timeout_timer = uasync_set_timeout(bgp->instance->ua, wait_timeout_ms * 10, pending, route_ping_pending_timeout); - DEBUG_INFO(DEBUG_CATEGORY_BGP, "request_id=%016llx node=%016llx ip=%08x port=%u pubkey=%s", + DEBUG_INFO(DEBUG_CATEGORY_BGP, "request_id=%016llx node=%016llx ip=%s port=%u pubkey=%s", (unsigned long long)pending->request_id, (unsigned long long)node_id, - (unsigned)target_ip, (unsigned)target_port, pubkey ? "yes" : "no"); + ip_to_str(&target_ip, AF_INET).str, (unsigned)target_port, pubkey ? "yes" : "no"); return 0; }