[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] bugfix: make a debug log stop lying



Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	buffers.c 
Log Message:
bugfix: make a debug log stop lying


Index: buffers.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- buffers.c	23 Apr 2005 14:26:02 -0000	1.133
+++ buffers.c	25 Apr 2005 15:43:05 -0000	1.134
@@ -263,7 +263,7 @@
   } 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;