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:
@@ -47,6 +47,11 @@ Notes to self:
|
||||
#include "nsIInputStream.h"
|
||||
|
||||
#include "nsSpecialSystemDirectory.h"
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsTransferableLog, 0)
|
||||
#define PRINTF NS_LOG_PRINTF(nsTransferableLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsTransferableLog)
|
||||
|
||||
NS_IMPL_ADDREF(nsTransferable)
|
||||
NS_IMPL_RELEASE(nsTransferable)
|
||||
@@ -97,14 +102,14 @@ DataStruct::SetData ( nsISupports* aData, PRUint32 aDataLen )
|
||||
if (aDataLen > LARGE_DATASET_SIZE) {
|
||||
// if so, cache it to disk instead of memory
|
||||
if ( NS_SUCCEEDED(WriteCache(aData, aDataLen)) ) {
|
||||
printf("->>>>>>>>>>>>>> Wrote Clipboard to cache file\n");
|
||||
PRINTF("->>>>>>>>>>>>>> Wrote Clipboard to cache file\n");
|
||||
return;
|
||||
}
|
||||
else
|
||||
printf("->>>>>>>>>>>>>> Writing Clipboard to cache file FAILED\n");
|
||||
PRINTF("->>>>>>>>>>>>>> Writing Clipboard to cache file FAILED\n");
|
||||
|
||||
} else {
|
||||
printf("->>>>>>>>>>>>>> Write Clipboard to memory\n");
|
||||
PRINTF("->>>>>>>>>>>>>> Write Clipboard to memory\n");
|
||||
}
|
||||
|
||||
mData = aData;
|
||||
@@ -121,7 +126,7 @@ DataStruct::GetData ( nsISupports** aData, PRUint32 *aDataLen )
|
||||
// if so, read it in and pass it back
|
||||
// ReadCache creates memory and copies the data into it.
|
||||
if ( NS_SUCCEEDED(ReadCache(aData, aDataLen)) ) {
|
||||
printf("->>>>>>>>>>>>>> Read Clipboard from cache file\n");
|
||||
PRINTF("->>>>>>>>>>>>>> Read Clipboard from cache file\n");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
@@ -132,7 +137,7 @@ DataStruct::GetData ( nsISupports** aData, PRUint32 *aDataLen )
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
printf("->>>>>>>>>>>>>> Read Clipboard from memory\n");
|
||||
PRINTF("->>>>>>>>>>>>>> Read Clipboard from memory\n");
|
||||
}
|
||||
|
||||
*aData = mData;
|
||||
|
||||
Reference in New Issue
Block a user