Mercurial > hg > svcore
diff data/fileio/BZipFileDevice.cpp @ 690:1424aa29ae95
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:26:52 +0100 |
parents | 06f13a3b9e9e |
children | e802e550a1f2 |
line wrap: on
line diff
--- a/data/fileio/BZipFileDevice.cpp Tue Jun 14 14:47:59 2011 +0100 +++ b/data/fileio/BZipFileDevice.cpp Tue Jun 14 15:26:52 2011 +0100 @@ -30,7 +30,7 @@ BZipFileDevice::~BZipFileDevice() { -// DEBUG << "BZipFileDevice::~BZipFileDevice(" << m_fileName << ")" << endl; +// SVDEBUG << "BZipFileDevice::~BZipFileDevice(" << m_fileName << ")" << endl; if (m_bzFile) close(); } @@ -178,7 +178,7 @@ int bzError = BZ_OK; int read = BZ2_bzRead(&bzError, m_bzFile, data, maxSize); -// DEBUG << "BZipFileDevice::readData: requested " << maxSize << ", read " << read << endl; +// SVDEBUG << "BZipFileDevice::readData: requested " << maxSize << ", read " << read << endl; if (bzError != BZ_OK) { if (bzError != BZ_STREAM_END) { @@ -187,7 +187,7 @@ m_ok = false; return -1; } else { -// DEBUG << "BZipFileDevice::readData: reached end of file" << endl; +// SVDEBUG << "BZipFileDevice::readData: reached end of file" << endl; m_atEnd = true; } } @@ -201,7 +201,7 @@ int bzError = BZ_OK; BZ2_bzWrite(&bzError, m_bzFile, (void *)data, maxSize); -// DEBUG << "BZipFileDevice::writeData: " << maxSize << " to write" << endl; +// SVDEBUG << "BZipFileDevice::writeData: " << maxSize << " to write" << endl; if (bzError != BZ_OK) { std::cerr << "BZipFileDevice::writeData: error condition" << std::endl; @@ -210,7 +210,7 @@ return -1; } -// DEBUG << "BZipFileDevice::writeData: wrote " << maxSize << endl; +// SVDEBUG << "BZipFileDevice::writeData: wrote " << maxSize << endl; return maxSize; }