From a146a328856a1f8b5099064f0262a34d5623021b Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 4 Dec 2007 23:11:05 +0000 Subject: [PATCH] Be a little more verbose about why increases fail --- ot_fullscrape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ot_fullscrape.c b/ot_fullscrape.c index 8d1b1db..d40e471 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c @@ -92,7 +92,7 @@ static int fullscrape_increase( int *iovec_entries, struct iovec **iovector, /* Adjust new end of output buffer */ *re = *r + OT_SCRAPE_CHUNK_SIZE - OT_SCRAPE_MAXENTRYLEN; - + /* When compressing, we have all the bytes in output buffer */ #ifdef WANT_COMPRESSION_GZIP if( mode & TASK_FLAG_GZIP ) { @@ -100,7 +100,7 @@ static int fullscrape_increase( int *iovec_entries, struct iovec **iovector, strm->next_out = (uint8_t*)*r; strm->avail_out = OT_SCRAPE_CHUNK_SIZE; if( deflate( strm, zaction ) < Z_OK ) - fprintf( stderr, "deflate() failed while in fullscrape_increase().\n" ); + fprintf( stderr, "deflate() failed while in fullscrape_increase(%d).\n", zaction ); *r = (char*)strm->next_out; } #endif