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

@@ -34,6 +34,11 @@
#include "xptcall.h"
#include "nsAutoLock.h"
#include "nslog.h"
NS_IMPL_LOG(nsProxyEventObjectLog)
#define PRINTF NS_LOG_PRINTF(nsProxyEventObjectLog)
#define FLUSH NS_LOG_FLUSH(nsProxyEventObjectLog)
static NS_DEFINE_IID(kProxyObject_Identity_Class_IID, NS_PROXYEVENT_IDENTITY_CLASS_IID);
@@ -88,8 +93,8 @@ nsProxyEventObject::DebugDump(const char * message, PRUint32 hashKey)
if (message)
{
printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-\n");
printf("%s\n", message);
PRINTF("\n-=-=-=-=-=-=-=-=-=-=-=-=-\n");
PRINTF("%s\n", message);
if(strcmp(message, "Create") == 0)
{
@@ -101,39 +106,39 @@ nsProxyEventObject::DebugDump(const char * message, PRUint32 hashKey)
outstandingProxyObjects--;
}
}
printf("nsProxyEventObject @ %x with mRefCnt = %d\n", this, mRefCnt);
PRINTF("nsProxyEventObject @ %x with mRefCnt = %d\n", this, mRefCnt);
PRBool isRoot = mRoot == nsnull;
printf("%s wrapper around @ %x\n", isRoot ? "ROOT":"non-root\n", GetRealObject());
PRINTF("%s wrapper around @ %x\n", isRoot ? "ROOT":"non-root\n", GetRealObject());
nsCOMPtr<nsISupports> rootObject = do_QueryInterface(mProxyObject->mRealObject);
nsCOMPtr<nsISupports> rootQueue = do_QueryInterface(mProxyObject->mDestQueue);
nsProxyEventKey key(rootObject, rootQueue, mProxyObject->mProxyType);
printf("Hashkey: %d\n", key.HashCode());
PRINTF("Hashkey: %d\n", key.HashCode());
char* name;
GetClass()->GetInterfaceInfo()->GetName(&name);
printf("interface name is %s\n", name);
PRINTF("interface name is %s\n", name);
if(name)
nsMemory::Free(name);
char * iid = GetClass()->GetProxiedIID().ToString();
printf("IID number is %s\n", iid);
PRINTF("IID number is %s\n", iid);
delete iid;
printf("nsProxyEventClass @ %x\n", mClass);
PRINTF("nsProxyEventClass @ %x\n", mClass);
if(mNext)
{
if(isRoot)
{
printf("Additional wrappers for this object...\n");
PRINTF("Additional wrappers for this object...\n");
}
mNext->DebugDump(nsnull, 0);
}
printf("[proxyobjects] %d total used in system, %d outstading\n", totalProxyObjects, outstandingProxyObjects);
PRINTF("[proxyobjects] %d total used in system, %d outstading\n", totalProxyObjects, outstandingProxyObjects);
if (message)
printf("-=-=-=-=-=-=-=-=-=-=-=-=-\n");
PRINTF("-=-=-=-=-=-=-=-=-=-=-=-=-\n");
PR_ExitMonitor(mon);
}