From 14934dece20c90911a7fa8d0f37595497a57c88e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 7 Oct 2005 18:48:31 +0000 Subject: [PATCH] Print address too when we say we cannot bind/listen svn:r5213 --- src/or/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/or/connection.c b/src/or/connection.c index ae57ffb5a4..8f05f75af1 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -522,13 +522,13 @@ connection_create_listener(const char *bindaddress, uint16_t bindport, #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 %s:%u: %s", address, 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 %s%u: %s", address, usePort, tor_socket_strerror(tor_socket_errno(s))); goto err; }