aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-10 13:26:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-10 13:26:02 +0000
commit11ba367fc9abaeef3d140d1df7561af99a9bc8e5 (patch)
tree7b4a69d9e4a76725bf889d751dffe74ccc605dd5 /lib
parent78473f71ebc78775381cbd448b5a7238a184caff (diff)
getaddrinfo() failures now show port number too in informational output
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 4ca600045..c6cd28b75 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -344,7 +344,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
snprintf(sbuf, sizeof(sbuf), "%d", port);
error = getaddrinfo(hostname, sbuf, &hints, &res);
if (error) {
- infof(data, "getaddrinfo(3) failed for %s\n", hostname);
+ infof(data, "getaddrinfo(3) failed for %s:%d\n", hostname, port);
return NULL;
}
*bufp=(char *)res; /* make it point to the result struct */