diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-25 15:43:05 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-25 15:43:05 +0000 |
commit | 12ea3a26b2f4b85ac22b6b37a562a87e6cfc7dc1 (patch) | |
tree | 7292a64f642e8ca09336bdf160f329259614fb00 /src | |
parent | b381e5d2f44b3e6d8314117112e5bc2d09d48ac4 (diff) | |
download | tor-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.c | 2 |
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; |