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

@@ -24,6 +24,11 @@
#include "nsHashtable.h"
#include "nsIEventQueueService.h"
#include "nsIServiceManager.h"
#include "nslog.h"
NS_IMPL_LOG(nsAppShellLog, 0)
#define PRINTF NS_LOG_PRINTF(nsAppShellLog)
#define FLUSH NS_LOG_FLUSH(nsAppShellLog)
NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
@@ -85,7 +90,7 @@ class nsAppshellManager
nsIAppShell *pShell = (nsIAppShell*) mTable->Get( &key);
if( pShell != aShell)
printf( "Appshell object dying in a foreign thread\n");
PRINTF( "Appshell object dying in a foreign thread\n");
else
mTable->Remove( &key);
@@ -168,7 +173,7 @@ nsresult nsAppShell::Run()
else
{
ULONG pmerr = WinGetLastError( mHab);
printf( "WinGetMsg failed with error %x -- bailing out!\n", pmerr);
PRINTF( "WinGetMsg failed with error %x -- bailing out!\n", pmerr);
break;
}