diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-03-29 01:56:39 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-03-29 01:56:39 +0000 |
commit | 2e761f8a7744f18059e2048f319f4cac8e32d765 (patch) | |
tree | add4cfdd6c6e71f3101de346e38f57a803a70aad /lib/compress | |
parent | c414132f88a8a687d50b602cd00087df58fac587 (diff) |
Replace all remaining use of TRACEx() macros with logging framework.
Remove the old TRACEx macros to catch any remaining uses.
Diffstat (limited to 'lib/compress')
-rw-r--r-- | lib/compress/Compress.h | 8 | ||||
-rw-r--r-- | lib/compress/CompressStream.cpp | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/compress/Compress.h b/lib/compress/Compress.h index 4a98a59e..de38af2c 100644 --- a/lib/compress/Compress.h +++ b/lib/compress/Compress.h @@ -52,10 +52,12 @@ public: if((r = ((Compressing)?(deflateEnd(&mStream)) :(inflateEnd(&mStream)))) != Z_OK) { - TRACE1("zlib error code = %d\n", r); + BOX_WARNING("zlib error code = " << r); if(r == Z_DATA_ERROR) { - TRACE0("WARNING: End of compress/decompress without all input being consumed -- possible corruption?\n"); + BOX_WARNING("End of compress/decompress " + "without all input being consumed, " + "possible corruption?"); } else { @@ -148,7 +150,7 @@ public: // Check errors if(ret < 0) { - TRACE1("zlib error code = %d\n", ret); + BOX_WARNING("zlib error code = " << ret); THROW_EXCEPTION(CompressException, TransformFailed) } diff --git a/lib/compress/CompressStream.cpp b/lib/compress/CompressStream.cpp index 2839b647..322b203b 100644 --- a/lib/compress/CompressStream.cpp +++ b/lib/compress/CompressStream.cpp @@ -414,7 +414,7 @@ void CompressStream::CheckBuffer() { size *= 2; } - TRACE1("Allocating CompressStream buffer, size %d\n", size); + BOX_TRACE("Allocating CompressStream buffer, size " << size); mpBuffer = ::malloc(size); if(mpBuffer == 0) { |