From 9b4203266e7e0e7d162bde0063281d0ab6e0b415 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 11 Mar 2004 06:19:08 +0000 Subject: Make OP work on windows! (Also misc logging tweaks) svn:r1258 --- src/or/connection.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/or/connection.c') diff --git a/src/or/connection.c b/src/or/connection.c index f2528aa00..ec522b215 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -154,8 +154,8 @@ void connection_close_immediate(connection_t *conn) return; } if (conn->outbuf_flushlen) { - log_fn(LOG_INFO,"Closing connection (fd %d, type %d, state %d) with data on outbuf.", - conn->s, conn->type, conn->state); + log_fn(LOG_INFO,"Closing connection (fd %d, type %s, state %d) with data on outbuf.", + conn->s, CONN_TYPE_TO_STRING(conn->type), conn->state); } close(conn->s); conn->s = -1; @@ -226,7 +226,8 @@ void connection_expire_held_open(void) if (conn->hold_open_until_flushed) { assert(conn->marked_for_close); if (now - conn->timestamp_lastwritten >= 15) { - log_fn(LOG_WARN,"Giving up on marked_for_close conn that's been flushing for 15s (fd %d, type %d, state %d).", conn->s, conn->type, conn->state); + log_fn(LOG_WARN,"Giving up on marked_for_close conn that's been flushing for 15s (fd %d, type %s, state %d).", + conn->s, CONN_TYPE_TO_STRING(conn->type), conn->state); conn->hold_open_until_flushed = 0; } } -- cgit v1.2.3