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

@@ -22,6 +22,15 @@
#include "IMECommitTxn.h"
#include "nsEditor.h"
#include "nslog.h"
#ifdef DEBUG_IME
NS_IMPL_LOG_ENABLED(IMECommitTxnLog)
#else
NS_IMPL_LOG(IMECommitTxnLog)
#endif
#define PRINTF NS_LOG_PRINTF(IMECommitTxnLog)
#define FLUSH NS_LOG_FLUSH(IMECommitTxnLog)
// #define DEBUG_IME
nsIAtom *IMECommitTxn::gIMECommitTxnName = nsnull;
@@ -57,28 +66,19 @@ NS_IMETHODIMP IMECommitTxn::Init(void)
NS_IMETHODIMP IMECommitTxn::Do(void)
{
#ifdef DEBUG_IME
printf("Do IME Commit");
#endif
PRINTF("Do IME Commit");
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::Undo(void)
{
#ifdef DEBUG_IME
printf("Undo IME Commit");
#endif
PRINTF("Undo IME Commit");
return NS_OK;
}
NS_IMETHODIMP IMECommitTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
{
#ifdef DEBUG_IME
printf("Merge IME Commit");
#endif
PRINTF("Merge IME Commit");
NS_ASSERTION(aDidMerge, "null ptr- aDidMerge");
NS_ASSERTION(aTransaction, "null ptr- aTransaction");
if((nsnull == aDidMerge) || (nsnull == aTransaction))