From: Ivo Timmermans Date: Sun, 14 May 2000 21:07:16 +0000 (+0000) Subject: Give IP address instead of hex number when connecting tcp socket failed. X-Git-Tag: release-1.0pre2~61 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=803f908078e87f433727a3ddf2d61734e1ed9233;p=tinc Give IP address instead of hex number when connecting tcp socket failed. --- diff --git a/src/net.c b/src/net.c index 6de95b5f..f8c7306d 100644 --- a/src/net.c +++ b/src/net.c @@ -654,8 +654,8 @@ cp if(connect(nfd, (struct sockaddr *)&a, sizeof(a)) == -1) { - syslog(LOG_ERR, "Create connection to %08lx:%d failed: %m", ntohs(cl->real_ip), - cl->port); + syslog(LOG_ERR, "Connecting to " IP_ADDR_S ":%d failed: %m", + IP_ADDR_V(cl->real_ip), cl->port); return -1; }