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,11 @@
#include "npapi.h"
#include "nullplugin.h"
#include "strings.h"
#include "nslog.h"
NS_IMPL_LOG(npshellLog, 0)
#define PRINTF NS_LOG_PRINTF(npshellLog)
#define FLUSH NS_LOG_FLUSH(npshellLog)
/***********************************************************************
*
@@ -201,11 +206,11 @@ NPP_SetWindow(NPP instance, NPWindow* window)
id.
*/
#ifdef DEBUG
fprintf(stderr, "Nullplugin: plugin received window resize.\n");
fprintf(stderr, "Window=(%i)\n", (int)window);
PRINTF("Nullplugin: plugin received window resize.\n");
PRINTF("Window=(%i)\n", (int)window);
if (window) {
fprintf(stderr, "W=(%i) H=(%i)\n",
(int)window->width, (int)window->height);
PRINTF("W=(%i) H=(%i)\n",
(int)window->width, (int)window->height);
}
#endif
return NPERR_NO_ERROR;

View File

@@ -40,6 +40,11 @@
#include <stdio.h>
#include "npapi.h"
#include "npupp.h"
#include "nslog.h"
NS_IMPL_LOG(npunixLog, 0)
#define PRINTF NS_LOG_PRINTF(npunixLog)
#define FLUSH NS_LOG_FLUSH(npunixLog)
/*
* Define PLUGIN_TRACE to have the wrapper functions print
@@ -48,7 +53,7 @@
#ifdef PLUGIN_TRACE
#include <stdio.h>
#define PLUGINDEBUGSTR(msg) fprintf(stderr, "%s\n", msg)
#define PLUGINDEBUGSTR(msg) PRINTF("%s\n", msg)
#else
#define PLUGINDEBUGSTR(msg)
#endif