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:
@@ -37,6 +37,11 @@
|
||||
#include "resid.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsModuleLog, 0)
|
||||
#define PRINTF NS_LOG_PRINTF(nsModuleLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsModuleLog)
|
||||
|
||||
// Module-level data & utility functions:
|
||||
// * unicode keycode & string conversion
|
||||
@@ -68,7 +73,7 @@ void nsWidgetModuleData::Init( nsIAppShell *aPrimaevalAppShell)
|
||||
|
||||
if( rc)
|
||||
{
|
||||
printf( "Widget failed to load resource DLL. rc = %d, cause = %s\n",
|
||||
PRINTF( "Widget failed to load resource DLL. rc = %d, cause = %s\n",
|
||||
(int)rc, buffer);
|
||||
hModResources = 0;
|
||||
}
|
||||
@@ -180,7 +185,7 @@ HPOINTER nsWidgetModuleData::GetPointer( nsCursor aCursor)
|
||||
if( idPtr == 0)
|
||||
{
|
||||
idPtr = ID_PTR_SELECTURL; // default to hyperlink cursor?
|
||||
printf( "\n*** Need to implement cursor type %d (see widget/src/os2/nsModule.cpp)\n\n", (int) aCursor);
|
||||
PRINTF( "\n*** Need to implement cursor type %d (see widget/src/os2/nsModule.cpp)\n\n", (int) aCursor);
|
||||
}
|
||||
|
||||
// Use an array and indices here since we have all the pointers in place?
|
||||
@@ -213,14 +218,14 @@ int nsWidgetModuleData::CreateUcsConverter()
|
||||
#ifdef DEBUG
|
||||
if( unirc == ULS_SUCCESS)
|
||||
{
|
||||
printf( "Widget library created unicode converter for cp %s\n",
|
||||
PRINTF( "Widget library created unicode converter for cp %s\n",
|
||||
ConvertFromUcs( (PRUnichar *) codepage));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if( unirc != ULS_SUCCESS)
|
||||
{
|
||||
printf( "Couldn't create widget unicode converter.\n");
|
||||
PRINTF( "Couldn't create widget unicode converter.\n");
|
||||
}
|
||||
|
||||
return unirc;
|
||||
@@ -280,7 +285,7 @@ PRUnichar *nsWidgetModuleData::ConvertToUcs( const char *szText,
|
||||
}
|
||||
else if( unirc != ULS_SUCCESS)
|
||||
{
|
||||
printf( "UniUconvToUcs failed, rc %X\n", unirc);
|
||||
PRINTF( "UniUconvToUcs failed, rc %X\n", unirc);
|
||||
supplantConverter = TRUE;
|
||||
pBuffer = ConvertToUcs( szText, pBuffer, ulSize);
|
||||
supplantConverter = FALSE;
|
||||
@@ -342,7 +347,7 @@ char *nsWidgetModuleData::ConvertFromUcs( const PRUnichar *pText,
|
||||
}
|
||||
else if( unirc != ULS_SUCCESS)
|
||||
{
|
||||
printf( "UniUconvFromUcs failed, rc %X\n", unirc);
|
||||
PRINTF( "UniUconvFromUcs failed, rc %X\n", unirc);
|
||||
supplantConverter = TRUE;
|
||||
szBuffer = ConvertFromUcs( pText, szBuffer, ulSize);
|
||||
supplantConverter = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user