summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-04-25 15:43:05 +0000
committerRoger Dingledine <arma@torproject.org>2005-04-25 15:43:05 +0000
commit12ea3a26b2f4b85ac22b6b37a562a87e6cfc7dc1 (patch)
tree7292a64f642e8ca09336bdf160f329259614fb00 /src
parentb381e5d2f44b3e6d8314117112e5bc2d09d48ac4 (diff)
downloadtor-12ea3a26b2f4b85ac22b6b37a562a87e6cfc7dc1.tar.gz
tor-12ea3a26b2f4b85ac22b6b37a562a87e6cfc7dc1.zip
bugfix: make a debug log stop lying
svn:r4110
Diffstat (limited to 'src')
-rw-r--r--src/or/buffers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 7edc2cdf34..c437d49872 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -263,7 +263,7 @@ int flush_buf(int s, buf_t *buf, size_t *buf_flushlen)
} else {
*buf_flushlen -= write_result;
log_fn(LOG_DEBUG,"%d: flushed %d bytes, %d ready to flush, %d remain.",
- s,write_result,(int)*buf_flushlen,(int)buf->datalen);
+ s,write_result,(int)*buf_flushlen,(int)buf->datalen-write_result);
buf_remove_from_front(buf, write_result);
return write_result;