Give IP address instead of hex number when connecting tcp socket failed.

This commit is contained in:
Ivo Timmermans 2000-05-14 21:07:16 +00:00
parent 4b1a1c2123
commit 803f908078

View file

@ -654,8 +654,8 @@ cp
if(connect(nfd, (struct sockaddr *)&a, sizeof(a)) == -1) if(connect(nfd, (struct sockaddr *)&a, sizeof(a)) == -1)
{ {
syslog(LOG_ERR, "Create connection to %08lx:%d failed: %m", ntohs(cl->real_ip), syslog(LOG_ERR, "Connecting to " IP_ADDR_S ":%d failed: %m",
cl->port); IP_ADDR_V(cl->real_ip), cl->port);
return -1; return -1;
} }