Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson

git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
2000-10-27 22:43:51 +00:00
parent e7c9040b5e
commit c6b67eceeb
757 changed files with 10724 additions and 8223 deletions

View File

@@ -42,6 +42,11 @@
#include "nsDBAccessor.h"
#include "nsILocalFile.h"
#include "nslog.h"
NS_IMPL_LOG(nsDiskCacheRecordLog)
#define PRINTF NS_LOG_PRINTF(nsDiskCacheRecordLog)
#define FLUSH NS_LOG_FLUSH(nsDiskCacheRecordLog)
#if !defined(IS_LITTLE_ENDIAN) && !defined(IS_BIG_ENDIAN)
ERROR! Must have a byte order
@@ -74,9 +79,7 @@ nsDiskCacheRecord::nsDiskCacheRecord(nsIDBAccessor* db, nsNetDiskCache* aCache)
NS_INIT_REFCNT();
NS_ASSERTION(mDiskCache, "Must have an nsNetDiskCache");
NS_ADDREF(mDiskCache);
#ifdef DEBUG_dp
printf("CACHE: nsDiskCacheRecord(): %p created\n", this);
#endif /* DEBUG_dp */
PRINTF("CACHE: nsDiskCacheRecord(): %p created\n", this);
}
// mem alloced. so caller should do free() on key.
@@ -118,9 +121,7 @@ nsDiskCacheRecord::Init(const char* key, PRUint32 length, PRInt32 ID)
nsDiskCacheRecord::~nsDiskCacheRecord()
{
#ifdef DEBUG_dp
printf("CACHE: ~nsDiskCacheRecord(%d, %s): %p destroyed\n", mRecordID, mKey, this);
#endif /* DEBUG_dp */
PRINTF("CACHE: ~nsDiskCacheRecord(%d, %s): %p destroyed\n", mRecordID, mKey, this);
if(mKey)
nsMemory::Free(mKey) ;
if(mMetaData)