summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-03-19 22:47:34 +0000
committerNick Mathewson <nickm@torproject.org>2003-03-19 22:47:34 +0000
commit29da03cbdc0c0bf46b54b30131632cdeed1adb63 (patch)
treebb6ddec190f6265e02b2230a738aba5334fb9f1b /src/or/buffers.c
parentfceb45727602223d214e55d0474976f84141d8e1 (diff)
downloadtor-29da03cbdc0c0bf46b54b30131632cdeed1adb63.tar.gz
tor-29da03cbdc0c0bf46b54b30131632cdeed1adb63.zip
Be loud when decompressing
svn:r213
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 2f6c64cc5d..c88fa62a11 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -192,6 +192,9 @@ int decompress_buf_to_buf(char **buf_in, int *buflen_in, int *buf_datalen_in,
{
case Z_OK:
case Z_STREAM_END:
+ log(LOG_DEBUG, "Uncompressed (%d/%d); filled (%d/%d)",
+ *buf_datalen_in-zstream->avail_in, *buf_datalen_in,
+ *buf_datalen_out-zstream->avail_out, *buf_datalen_out);
memmove(*buf_in, zstream->next_in, zstream->avail_in);
*buf_datalen_in = zstream->avail_in;
*buf_datalen_out = *buflen_out - zstream->avail_out;