summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-03-22 23:27:29 +0000
committerRoger Dingledine <arma@torproject.org>2005-03-22 23:27:29 +0000
commit21b1adefbb4697267dfc786096faf79ea6bdca18 (patch)
tree036b28221d627994658f657911b7a06ab043e4b4 /src
parentad5f5ddf7ee4c386fcd3e90542956a9e7a58e6b4 (diff)
downloadtor-21b1adefbb4697267dfc786096faf79ea6bdca18.tar.gz
tor-21b1adefbb4697267dfc786096faf79ea6bdca18.zip
fix a 32bit/64bit sprintf mixup that weasel pointed out
svn:r3823
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 36917db838..e2176d4233 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -697,9 +697,9 @@ static void run_connection_housekeeping(int i, time_t now) {
} else if (
now >= conn->timestamp_lastempty + options->KeepalivePeriod*10 &&
now >= conn->timestamp_lastwritten + options->KeepalivePeriod*10) {
- log_fn(LOG_NOTICE,"Expiring stuck connection to %d (%s:%d). (%ul bytes to flush; %d seconds since last write)",
+ log_fn(LOG_NOTICE,"Expiring stuck connection to %d (%s:%d). (%d bytes to flush; %d seconds since last write)",
i, conn->address, conn->port,
- (unsigned long)buf_datalen(conn->outbuf),
+ (int)buf_datalen(conn->outbuf),
(int)(now-conn->timestamp_lastwritten));
connection_mark_for_close(conn);
} else {