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:
@@ -32,6 +32,11 @@
|
||||
|
||||
#include "nsConsoleService.h"
|
||||
#include "nsConsoleMessage.h"
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsConsoleServiceLog)
|
||||
#define PRINTF NS_LOG_PRINTF(nsConsoleServiceLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsConsoleServiceLog)
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS(nsConsoleService, NS_GET_IID(nsIConsoleService));
|
||||
|
||||
@@ -75,10 +80,9 @@ nsConsoleService::~nsConsoleService()
|
||||
nsresult rv;
|
||||
rv = mListeners->Count(&listenerCount);
|
||||
if (listenerCount != 0) {
|
||||
fprintf(stderr,
|
||||
"WARNING - %d console error listeners still registered!\n"
|
||||
"More calls to nsIConsoleService::UnregisterListener needed.\n",
|
||||
listenerCount);
|
||||
PRINTF("WARNING - %d console error listeners still registered!\n"
|
||||
"More calls to nsIConsoleService::UnregisterListener needed.\n",
|
||||
listenerCount);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user