]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log number of bytes pending after read.
authorNick Mathewson <nickm@torproject.org>
Mon, 26 Apr 2004 23:05:58 +0000 (23:05 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 26 Apr 2004 23:05:58 +0000 (23:05 +0000)
svn:r1726

src/or/buffers.c

index 8eca58818d08afd5b38134530876e08546c3f20f..47b5b4e6ac5911b1949bb6a19bd81a05f61ce726 100644 (file)
@@ -237,7 +237,8 @@ int read_to_buf_tls(tor_tls *tls, int at_most, buf_t *buf) {
   if (r<0)
     return r;
   buf->datalen += r;
-  log_fn(LOG_DEBUG,"Read %d bytes. %d on inbuf.",r, (int)buf->datalen);
+  log_fn(LOG_DEBUG,"Read %d bytes. %d on inbuf; %d pending",r,
+         (int)buf->datalen,(int)tor_tls_get_pending_bytes(tls));
   return r;
 }