NetBSD extra debug

This commit is contained in:
Michiel Broek 2005-08-17 19:33:10 +00:00
parent 5b7e741b4b
commit c0e17cb315

View File

@ -1036,6 +1036,9 @@ TrType binkp_receiver(void)
struct statfs sfs; struct statfs sfs;
long written; long written;
off_t rxbytes; off_t rxbytes;
int rc1 = 0, nget = bp.blklen, zavail, nput;
char zbuf[ZBLKSIZE];
char *buf = bp.rxbuf;
if (bp.RxState == RxWaitF) { if (bp.RxState == RxWaitF) {
@ -1264,11 +1267,10 @@ TrType binkp_receiver(void)
/* /*
* Receive stream compressed data * Receive stream compressed data
*/ */
int rc1 = 0, nget = bp.blklen, zavail, nput; Syslog('b', "enter receive stream");
char zbuf[ZBLKSIZE];
char *buf = bp.rxbuf;
if (bp.z_idata == NULL) { if (bp.z_idata == NULL) {
Syslog('b', "decompress_init begins");
if (decompress_init(bp.rmode, &bp.z_idata)) { if (decompress_init(bp.rmode, &bp.z_idata)) {
Syslog('+', "Binkp: can't init decompress"); Syslog('+', "Binkp: can't init decompress");
bp.RxState = RxDone; bp.RxState = RxDone;
@ -2860,11 +2862,14 @@ int decompress_init(int type, void **data)
#endif #endif
#ifdef HAVE_ZLIB_H #ifdef HAVE_ZLIB_H
case CompGZ: { case CompGZ: {
Syslog('b', "init start %d", sizeof(z_stream));
*data = calloc(1, sizeof(z_stream)); *data = calloc(1, sizeof(z_stream));
Syslog('b', "data calloc done");
if (*data == NULL) { if (*data == NULL) {
Syslog('+', "Binkp: decompress_init: not enough memory (%lu needed)", sizeof(z_stream)); Syslog('+', "Binkp: decompress_init: not enough memory (%lu needed)", sizeof(z_stream));
return Z_MEM_ERROR; return Z_MEM_ERROR;
} }
Syslog('b', "begin inflateInit");
return inflateInit((z_stream *)*data); return inflateInit((z_stream *)*data);
} }
#endif #endif