summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-08 08:53:51 +0100
committerMichael Adam <obnox@samba.org>2013-11-09 13:34:33 +0100
commite40b91974aae069aef5c2d2d1e12b4618289646d (patch)
treed6af4369f1184e51e40a984e57d9a7730d413582 /src
parent22587d3d41222ba3e4ca3cd755a8662ca7ff7479 (diff)
downloadtinyproxy-e40b91974aae069aef5c2d2d1e12b4618289646d.tar.gz
tinyproxy-e40b91974aae069aef5c2d2d1e12b4618289646d.zip
sock: add a starting debug message to listen_sock()
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/sock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sock.c b/src/sock.c
index 17f15fe..d0151c4 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -254,6 +254,9 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds)
assert (port > 0);
assert (listen_fds != NULL);
+ log_message(LOG_INFO, "listen_sock called with addr = '%s'",
+ addr == NULL ? "(NULL)" : addr);
+
memset (&hints, 0, sizeof (struct addrinfo));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;