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:
@@ -126,6 +126,12 @@
|
||||
#include "nsInternetCiter.h"
|
||||
#include "nsEditorShellMouseListener.h"
|
||||
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsEditorShellLog)
|
||||
#define PRINTF NS_LOG_PRINTF(nsEditorShellLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsEditorShellLog)
|
||||
|
||||
///////////////////////////////////////
|
||||
|
||||
// Drag & Drop, Clipboard
|
||||
@@ -558,9 +564,7 @@ nsEditorShell::PrepareDocumentForEditing(nsIDocumentLoader* aLoader, nsIURI *aUr
|
||||
temp++;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
printf("PrepareDocumentForEditing: Editor is editing %s\n", pageURLString ? pageURLString : "");
|
||||
#endif
|
||||
PRINTF("PrepareDocumentForEditing: Editor is editing %s\n", pageURLString ? pageURLString : "");
|
||||
|
||||
// only save the file spec if this is a local file, and is not
|
||||
// about:blank
|
||||
@@ -817,7 +821,7 @@ nsEditorShell::SetWebShellWindow(nsIDOMWindowInternal* aWin)
|
||||
nsAutoString str(name);
|
||||
|
||||
char* cstr = str.ToNewCString();
|
||||
printf("Attaching to WebShellWindow[%s]\n", cstr);
|
||||
PRINTF("Attaching to WebShellWindow[%s]\n", cstr);
|
||||
nsCRT::free(cstr);
|
||||
#endif
|
||||
*/
|
||||
@@ -2614,7 +2618,7 @@ nsEditorShell::Rewrap(PRBool aRespectNewlines)
|
||||
if (NS_FAILED(rv))
|
||||
return NS_OK;
|
||||
#ifdef DEBUG_akkana
|
||||
printf("nsEditorShell::Rewrap to %ld columns\n", (long)wrapCol);
|
||||
PRINTF("nsEditorShell::Rewrap to %ld columns\n", (long)wrapCol);
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsISelection> selection;
|
||||
@@ -2678,7 +2682,7 @@ NS_IMETHODIMP
|
||||
nsEditorShell::StripCites()
|
||||
{
|
||||
#ifdef DEBUG_akkana
|
||||
printf("nsEditorShell::StripCites()\n");
|
||||
PRINTF("nsEditorShell::StripCites()\n");
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsISelection> selection;
|
||||
@@ -5033,7 +5037,7 @@ nsEditorShell::RunUnitTests()
|
||||
err = editor->DebugUnitTests(&numTests, &numTestsFailed);
|
||||
|
||||
#ifdef APP_DEBUG
|
||||
printf("\nRan %ld tests, of which %ld failed\n", (long)numTests, (long)numTestsFailed);
|
||||
PRINTF("\nRan %ld tests, of which %ld failed\n", (long)numTests, (long)numTestsFailed);
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
@@ -5384,7 +5388,7 @@ nsEditorShell::HandleMouseClickOnElement(nsIDOMElement *aElement, PRInt32 aClick
|
||||
TagName.ToLowerCase();
|
||||
char szTagName[64];
|
||||
TagName.ToCString(szTagName, 64);
|
||||
printf("***** Element clicked on: %s, x=%d, y=%d\n", szTagName, x, y);
|
||||
PRINTF("***** Element clicked on: %s, x=%d, y=%d\n", szTagName, x, y);
|
||||
#endif
|
||||
*/
|
||||
if (mDisplayMode == eDisplayModeAllTags)
|
||||
|
||||
Reference in New Issue
Block a user