From f90e08fe2a64b0402a810a704a00b24c7433f50a Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 31 Jan 2003 11:11:38 +0000 Subject: Correctness --- lib/Handle.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/Handle.cc b/lib/Handle.cc index 2233722..030eb2c 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -96,7 +96,7 @@ ssize_t Handle::write(const void *cbuf, size_t count) throw (GeneralException) { ssize_t Handle::read(void *buf, size_t count) throw (GeneralException) { ssize_t r; -#ifdef DEBUG +#ifdef FULLDEBUG std::cerr << "read: reading " << count << " bytes from handle " << GetHandle() << std::endl; #endif @@ -252,7 +252,7 @@ void Handle::SetZ(int az) throw (GeneralException) { } format[index++] = (char) (az + '0'); format[index] = 0; -#ifdef DEBUG +#ifdef FULLDEBUG std::cerr << "Performing gzdopen on handle " << h << " with mode \"" << format << "\"\n"; #endif if (!(zfile = gzdopen(h, format))) { @@ -265,16 +265,13 @@ void Handle::SetZ(int az) throw (GeneralException) { ssize_t Handle::uwrite(const void * buf, size_t count) throw (GeneralException) { if (z) { itell += count; -#ifdef DEBUG +#ifdef FULLDEBUG std::cerr << "Performing gzwrite of " << count << " byte for handle " << h << std::endl; #endif #ifdef HAVE_WD_ZLIB int err = gzwrite(zfile, buf, count); #else int err = gzwrite(zfile, (char *) buf, count); -#endif -#ifdef DEBUG - std::cerr << "gzwrite returned " << err << std::endl; #endif if (err == 0) { const char * m = gzerror(zfile, &err); @@ -298,9 +295,6 @@ ssize_t Handle::uread(void * buf, size_t count) { std::cerr << "Performing gzread of " << count << " byte for handle " << h << std::endl; #endif int err = gzread(zfile, buf, count); -#ifdef DEBUG - std::cerr << "gzwrite returned " << err << std::endl; -#endif if (err == -1) { gzerror(zfile, &err); if (err == Z_ERRNO) { -- cgit v1.2.3