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

@@ -25,6 +25,15 @@
#include "nsContentPolicyUtils.h"
#include "nsContentPolicy.h"
#include "nsICategoryManager.h"
#include "nslog.h"
#ifdef DEBUG_shaver
NS_IMPL_LOG_ENABLED(nsContentPolicyLog)
#else
NS_IMPL_LOG(nsContentPolicyLog)
#endif
#define PRINTF NS_LOG_PRINTF(nsContentPolicyLog)
#define FLUSH NS_LOG_FLUSH(nsContentPolicyLog)
NS_IMPL_ISUPPORTS1(nsContentPolicy, nsIContentPolicy)
@@ -85,9 +94,7 @@ nsContentPolicy::nsContentPolicy()
if (NS_FAILED(string->GetData(getter_Copies(contractid))))
continue;
#ifdef DEBUG_shaver
fprintf(stderr, "POLICY: loading %s\n", (const char *)contractid);
#endif
PRINTF("POLICY: loading %s\n", (const char *)contractid);
/*
* Create this policy service and add to mPolicies.
*