diff options
author | Roger Dingledine <arma@torproject.org> | 2005-07-14 23:08:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-07-14 23:08:55 +0000 |
commit | 452c98058fc214444e726848dafa13447b013721 (patch) | |
tree | 60a679a546fad096b83b143ac5f091cf9d43d143 /src | |
parent | d8d0feb6339db059845a4fbf0b27d2b3d98da728 (diff) | |
download | tor-452c98058fc214444e726848dafa13447b013721.tar tor-452c98058fc214444e726848dafa13447b013721.tar.gz |
missed one
svn:r4567
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index ba712514b..fe72c3611 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; } |