Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
This commit is contained in:
@@ -45,6 +45,11 @@
|
||||
#include "nsExpatTokenizer.h"
|
||||
#include "nsIParserService.h"
|
||||
#include "nsElementTable.h"
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsParserModuleLog)
|
||||
#define PRINTF NS_LOG_PRINTF(nsParserModuleLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsParserModuleLog)
|
||||
|
||||
static NS_DEFINE_IID(kIParserServiceIID, NS_IPARSERSERVICE_IID);
|
||||
|
||||
@@ -393,10 +398,8 @@ nsParserModule::RegisterSelf(nsIComponentManager *aCompMgr,
|
||||
rv = aCompMgr->RegisterComponentSpec(*cp->mCID, cp->mDescription,
|
||||
nsnull, aPath, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) {
|
||||
#ifdef DEBUG
|
||||
printf("nsParserModule: unable to register %s component => %x\n",
|
||||
PRINTF("nsParserModule: unable to register %s component => %x\n",
|
||||
cp->mDescription, rv);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
cp++;
|
||||
@@ -414,10 +417,8 @@ nsParserModule::UnregisterSelf(nsIComponentManager *aCompMgr,
|
||||
while (cp < end) {
|
||||
nsresult rv = aCompMgr->UnregisterComponentSpec(*cp->mCID, aPath);
|
||||
if (NS_FAILED(rv)) {
|
||||
#ifdef DEBUG
|
||||
printf("nsParserModule: unable to unregister %s component => %x\n",
|
||||
PRINTF("nsParserModule: unable to unregister %s component => %x\n",
|
||||
cp->mDescription, rv);
|
||||
#endif
|
||||
}
|
||||
cp++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user