[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] missed one



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	connection.c 
Log Message:
missed one


Index: connection.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.386
retrieving revision 1.387
diff -u -d -r1.386 -r1.387
--- connection.c	14 Jul 2005 23:07:05 -0000	1.386
+++ connection.c	14 Jul 2005 23:08:55 -0000	1.387
@@ -475,7 +475,8 @@
   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 @@
 #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;
   }