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 "EditTxn.h"
#include "TypeInState.h"
#include "nsIPref.h"
#include "nslog.h"
NS_IMPL_LOG(nsTextEditRulesLog)
#define PRINTF NS_LOG_PRINTF(nsTextEditRulesLog)
#define FLUSH NS_LOG_FLUSH(nsTextEditRulesLog)
static NS_DEFINE_CID(kContentIteratorCID, NS_CONTENTITERATOR_CID);
static NS_DEFINE_IID(kRangeCID, NS_RANGE_CID);
@@ -230,7 +235,7 @@ nsTextEditRules::WillDoAction(nsISelection *aSelection,
// null selection is legal
if (!aInfo || !aCancel || !aHandled) { return NS_ERROR_NULL_POINTER; }
#if defined(DEBUG_ftang)
printf("nsTextEditRules::WillDoAction action= %d", aInfo->action);
PRINTF("nsTextEditRules::WillDoAction action= %d", aInfo->action);
#endif
*aCancel = PR_FALSE;
@@ -478,7 +483,7 @@ nsTextEditRules::WillInsertBreak(nsISelection *aSelection, PRBool *aCancel, PRBo
mozQuoteVal, isMozQuote))
&& isMozQuote)
{
printf("It's a moz quote -- splitting\n");
PRINTF("It's a moz quote -- splitting\n");
nsCOMPtr<nsIDOMNode> outLeftNode;
nsCOMPtr<nsIDOMNode> outRightNode;
res = mEditor->SplitNodeDeep(preNode, selNode, selOffset, &newOffset, PR_TRUE, &outLeftNode, &outRightNode);
@@ -892,7 +897,7 @@ nsTextEditRules::WillDeleteSelection(nsISelection *aSelection,
#ifdef DEBUG_buster
char *password = mPasswordText.ToNewCString();
printf("mPasswordText is %s\n", password);
PRINTF("mPasswordText is %s\n", password);
nsCRT::free(password);
#endif
}