summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-07-14 23:08:55 +0000
committerRoger Dingledine <arma@torproject.org>2005-07-14 23:08:55 +0000
commit452c98058fc214444e726848dafa13447b013721 (patch)
tree60a679a546fad096b83b143ac5f091cf9d43d143
parentd8d0feb6339db059845a4fbf0b27d2b3d98da728 (diff)
downloadtor-0.1.1.2-alpha.tar.gz
tor-0.1.1.2-alpha.zip
svn:r4567
-rw-r--r--src/or/connection.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index ba712514bd..fe72c36111 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -475,7 +475,8 @@ connection_create_listener(const char *bindaddress, uint16_t bindport, int type)
bindaddr.sin_family = AF_INET;
bindaddr.sin_port = htons((uint16_t) usePort);
- log_fn(LOG_NOTICE, "Opening listener on %s:%d", address, usePort);
+ log_fn(LOG_NOTICE, "Opening %s on %s:%d",
+ conn_type_to_string(type), address, usePort);
s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
if (s < 0) {
@@ -496,13 +497,13 @@ connection_create_listener(const char *bindaddress, uint16_t bindport, int type)
#endif
if (bind(s,(struct sockaddr *)&bindaddr,sizeof(bindaddr)) < 0) {
- log_fn(LOG_WARN,"Could not bind to port %u: %s",usePort,
+ log_fn(LOG_WARN, "Could not bind to port %u: %s", usePort,
tor_socket_strerror(tor_socket_errno(s)));
goto err;
}
if (listen(s,SOMAXCONN) < 0) {
- log_fn(LOG_WARN,"Could not listen on port %u: %s",usePort,
+ log_fn(LOG_WARN, "Could not listen on port %u: %s", usePort,
tor_socket_strerror(tor_socket_errno(s)));
goto err;
}