[Box Backup-commit] COMMIT r1439 - box/chris/general/lib/backupclient

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Mar 24 14:37:04 GMT 2007


Author: chris
Date: 2007-03-24 14:37:04 +0000 (Sat, 24 Mar 2007)
New Revision: 1439

Modified:
   box/chris/general/lib/backupclient/BackupStoreFile.cpp
Log:
Use logging framework to reduce "Reallocating EncodingBuffer" noise
for those who don't want it


Modified: box/chris/general/lib/backupclient/BackupStoreFile.cpp
===================================================================
--- box/chris/general/lib/backupclient/BackupStoreFile.cpp	2007-03-24 14:36:17 UTC (rev 1438)
+++ box/chris/general/lib/backupclient/BackupStoreFile.cpp	2007-03-24 14:37:04 UTC (rev 1439)
@@ -46,6 +46,7 @@
 #include "ReadGatherStream.h"
 #include "Random.h"
 #include "BackupStoreFileEncodeStream.h"
+#include "Logging.h"
 
 #include "MemLeakFindOn.h"
 
@@ -1485,9 +1486,8 @@
 // --------------------------------------------------------------------------
 void BackupStoreFile::EncodingBuffer::Reallocate(int NewSize)
 {
-#ifndef WIN32
-	TRACE2("Reallocating EncodingBuffer from %d to %d\n", mBufferSize, NewSize);
-#endif
+	BOX_TRACE("Reallocating EncodingBuffer from " << mBufferSize <<
+		" to " << NewSize);
 	ASSERT(mpBuffer != 0);
 	uint8_t *buffer = (uint8_t*)BackupStoreFile::CodingChunkAlloc(NewSize);
 	if(buffer == 0)




More information about the Boxbackup-commit mailing list