diff options
author | Richard Levitte <levitte@openssl.org> | 2003-01-16 17:28:46 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-01-16 17:28:46 +0000 |
commit | 8228f302ddcb8b80ddc3696ce68f74af8bf8ae44 (patch) | |
tree | ca28885f3fdc9ae09fccd6503ec69d7aa71024c3 /crypto | |
parent | 018c56fdcad95befe7fe07b51d4c04d9af866c24 (diff) |
Add some debugging output.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/comp/c_zlib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/comp/c_zlib.c b/crypto/comp/c_zlib.c index d31ab63ad2..3bcb7c9600 100644 --- a/crypto/comp/c_zlib.c +++ b/crypto/comp/c_zlib.c @@ -207,6 +207,11 @@ static int zlib_stateful_compress_block(COMP_CTX *ctx, unsigned char *out, err = deflate(&state->ostream, Z_SYNC_FLUSH); if (err != Z_OK) return -1; +#ifdef DEBUG_ZLIB + fprintf(stderr,"compress(%4d)->%4d %s\n", + ilen,olen - state->ostream.avail_out, + (ilen != olen - state->ostream.avail_out)?"zlib":"clear"); +#endif return olen - state->ostream.avail_out; } @@ -230,6 +235,11 @@ static int zlib_stateful_expand_block(COMP_CTX *ctx, unsigned char *out, err = inflate(&state->istream, Z_SYNC_FLUSH); if (err != Z_OK) return -1; +#ifdef DEBUG_ZLIB + fprintf(stderr,"expand(%4d)->%4d %s\n", + ilen,olen - state->istream.avail_out, + (ilen != olen - state->istream.avail_out)?"zlib":"clear"); +#endif return olen - state->istream.avail_out; } |