Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson

This commit is contained in:
warren@netscape.com
2000-10-27 22:43:51 +00:00
parent faa6665213
commit 7730ce0cd3
666 changed files with 9691 additions and 7587 deletions

View File

@@ -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++;
}