]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a 32bit/64bit sprintf mixup that weasel pointed out
authorRoger Dingledine <arma@torproject.org>
Tue, 22 Mar 2005 23:27:29 +0000 (23:27 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 22 Mar 2005 23:27:29 +0000 (23:27 +0000)
svn:r3823

src/or/main.c

index 36917db838758f392e4bbc96d1b2aab8f680cf4f..e2176d4233705817fbee592ae47dddc03f3af07b 100644 (file)
@@ -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 {