summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Handle.cc12
1 files changed, 3 insertions, 9 deletions
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,7 +265,7 @@ 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
@@ -273,9 +273,6 @@ ssize_t Handle::uwrite(const void * buf, size_t count) throw (GeneralException)
#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);
if (err == Z_ERRNO) {
@@ -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) {