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

@@ -63,6 +63,11 @@
#include "jsapi.h"
#include "nsAppShellService.h"
#include "nslog.h"
NS_IMPL_LOG(nsAppShellServiceLog)
#define PRINTF NS_LOG_PRINTF(nsAppShellServiceLog)
#define FLUSH NS_LOG_FLUSH(nsAppShellServiceLog)
/* Define Class IDs */
static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
@@ -328,10 +333,8 @@ nsAppShellService::EnumerateComponents( EnumeratorMemberFunction function ) {
}
} else {
// Unable to set up for subkey enumeration.
#ifdef NS_DEBUG
printf( "Unable to enumerator app shell components, %s rv=0x%08X\n",
failed, (int)rv );
#endif
PRINTF( "Unable to enumerator app shell components, %s rv=0x%08X\n",
failed, (int)rv );
}
return;
@@ -350,7 +353,7 @@ nsAppShellService::InitializeComponent( const nsCID &aComponentCID ) {
rv = component->Initialize( this, mCmdLineService );
#ifdef NS_DEBUG
char *name = aComponentCID.ToString();
printf( "Initialized app shell component %s, rv=0x%08X\n",
PRINTF( "Initialized app shell component %s, rv=0x%08X\n",
name, (int)rv );
Recycle(name);
#endif
@@ -360,7 +363,7 @@ nsAppShellService::InitializeComponent( const nsCID &aComponentCID ) {
// Error creating component.
#ifdef NS_DEBUG
char *name = aComponentCID.ToString();
printf( "Error creating app shell component %s, rv=0x%08X\n",
PRINTF( "Error creating app shell component %s, rv=0x%08X\n",
name, (int)rv );
Recycle(name);
#endif
@@ -381,7 +384,7 @@ nsAppShellService::ShutdownComponent( const nsCID &aComponentCID ) {
rv = component->Shutdown();
#ifdef NS_DEBUG
char *name = aComponentCID.ToString();
printf( "Shut down app shell component %s, rv=0x%08X\n",
PRINTF( "Shut down app shell component %s, rv=0x%08X\n",
name, (int)rv );
nsCRT::free(name);
#endif
@@ -392,7 +395,7 @@ nsAppShellService::ShutdownComponent( const nsCID &aComponentCID ) {
// a service).
#ifdef NS_DEBUG
char *name = aComponentCID.ToString();
printf( "Unable to shut down app shell component %s, rv=0x%08X\n",
PRINTF( "Unable to shut down app shell component %s, rv=0x%08X\n",
name, (int)rv );
nsCRT::free(name);
#endif