diff options
author | erdgeist <> | 2007-12-04 23:11:05 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-04 23:11:05 +0000 |
commit | a146a328856a1f8b5099064f0262a34d5623021b (patch) | |
tree | 0d1f5df7adf1c0c9b31e929388302c9c4cc07a8d /ot_fullscrape.c | |
parent | 0bfab763d8401983edf40fe8421e3f68ef337dad (diff) |
Be a little more verbose about why increases fail
Diffstat (limited to 'ot_fullscrape.c')
-rw-r--r-- | ot_fullscrape.c | 4 |
1 files 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, | |||
92 | 92 | ||
93 | /* Adjust new end of output buffer */ | 93 | /* Adjust new end of output buffer */ |
94 | *re = *r + OT_SCRAPE_CHUNK_SIZE - OT_SCRAPE_MAXENTRYLEN; | 94 | *re = *r + OT_SCRAPE_CHUNK_SIZE - OT_SCRAPE_MAXENTRYLEN; |
95 | 95 | ||
96 | /* When compressing, we have all the bytes in output buffer */ | 96 | /* When compressing, we have all the bytes in output buffer */ |
97 | #ifdef WANT_COMPRESSION_GZIP | 97 | #ifdef WANT_COMPRESSION_GZIP |
98 | if( mode & TASK_FLAG_GZIP ) { | 98 | if( mode & TASK_FLAG_GZIP ) { |
@@ -100,7 +100,7 @@ static int fullscrape_increase( int *iovec_entries, struct iovec **iovector, | |||
100 | strm->next_out = (uint8_t*)*r; | 100 | strm->next_out = (uint8_t*)*r; |
101 | strm->avail_out = OT_SCRAPE_CHUNK_SIZE; | 101 | strm->avail_out = OT_SCRAPE_CHUNK_SIZE; |
102 | if( deflate( strm, zaction ) < Z_OK ) | 102 | if( deflate( strm, zaction ) < Z_OK ) |
103 | fprintf( stderr, "deflate() failed while in fullscrape_increase().\n" ); | 103 | fprintf( stderr, "deflate() failed while in fullscrape_increase(%d).\n", zaction ); |
104 | *r = (char*)strm->next_out; | 104 | *r = (char*)strm->next_out; |
105 | } | 105 | } |
106 | #endif | 106 | #endif |