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

@@ -44,6 +44,12 @@
#include "winbase.h"
#endif
#include "nslog.h"
NS_IMPL_LOG(nsPluginInstancePeerLog, 0)
#define PRINTF NS_LOG_PRINTF(nsPluginInstancePeerLog)
#define FLUSH NS_LOG_FLUSH(nsPluginInstancePeerLog)
nsPluginInstancePeerImpl::nsPluginInstancePeerImpl()
{
NS_INIT_REFCNT();
@@ -126,7 +132,7 @@ nsresult nsPluginInstancePeerImpl::QueryInterface(const nsIID& iid, void** insta
NS_IMETHODIMP nsPluginInstancePeerImpl::GetValue(nsPluginInstancePeerVariable variable, void *value)
{
printf("instance peer getvalue %d called\n", variable);
PRINTF("instance peer getvalue %d called\n", variable);
return NS_ERROR_FAILURE;
}
@@ -226,7 +232,7 @@ nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstance
// construct the URL we'll use later in calls to GetURL()
mFileURL = mFileSpec;
printf("File URL = %s\n", mFileURL.GetAsString());
PRINTF("File URL = %s\n", mFileURL.GetAsString());
}
nsPluginStreamToFile::~nsPluginStreamToFile()
@@ -833,7 +839,7 @@ NS_IMETHODIMP nsPluginInstancePeerImpl::GetMayScript(PRBool *result)
NS_IMETHODIMP nsPluginInstancePeerImpl::SetWindowSize(PRUint32 width, PRUint32 height)
{
printf("instance peer setwindowsize called\n");
PRINTF("instance peer setwindowsize called\n");
return NS_OK;
}