diff --git a/gfx/2d/Logging.h b/gfx/2d/Logging.h index c452a924f5e..788ad32de20 100644 --- a/gfx/2d/Logging.h +++ b/gfx/2d/Logging.h @@ -10,6 +10,7 @@ #include #include +#include "nsDebug.h" #include "Point.h" #include "Matrix.h" @@ -57,13 +58,13 @@ static inline void OutputMessage(const std::string &aString, int aLevel) { if (aLevel >= sGfxLogLevel) { ::OutputDebugStringA(aString.c_str()); } -#elif defined(PR_LOGGING) +#elif defined(PR_LOGGING) && !(defined(MOZ_WIDGET_GONK) || defined(MOZ_WIDGET_ANDROID)) if (PR_LOG_TEST(GetGFX2DLog(), PRLogLevelForLevel(aLevel))) { PR_LogPrint(aString.c_str()); } #else if (aLevel >= sGfxLogLevel) { - printf("%s", aString.c_str()); + printf_stderr("%s", aString.c_str()); } #endif }