diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-11-02 14:22:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-02 14:22:21 -0400 |
commit | 1bfda600c338cd8f7d6b9acc7613b5567e6ee03f (patch) | |
tree | c975c6ff132d9aa2b7431a82c51b041722b55f3a /src/or/connection.c | |
parent | 07656d70ed3bd71fa1eec229c823187864494e9c (diff) | |
download | tor-1bfda600c338cd8f7d6b9acc7613b5567e6ee03f.tar.gz tor-1bfda600c338cd8f7d6b9acc7613b5567e6ee03f.zip |
Add a TOR_SOCKET_T_FORMAT construction for logging sockets.
We need this since win64 has a 64-bit SOCKET type.
Based on a patch from yayooo for 7260, forward-ported to 0.2.4.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 1fbce418a4..2904bbfd6c 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1460,7 +1460,7 @@ connection_connect(connection_t *conn, const char *address, /* it succeeded. we're connected. */ log_fn(inprogress?LOG_DEBUG:LOG_INFO, LD_NET, - "Connection to %s:%u %s (sock %d).", + "Connection to %s:%u %s (sock "TOR_SOCKET_T_FORMAT").", escaped_safe_str_client(address), port, inprogress?"in progress":"established", s); conn->s = s; |