From 10e1f95da81ee504333926ab9e3639460a3d40fe Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Tue, 7 Dec 1999 07:21:30 +0000 Subject: [PATCH] Make sure that all warnings just printf on Mac, and don't dump you into MacsBug. r=pinkerton --- xpcom/base/nsDebug.cpp | 3 ++- xpcom/glue/nsDebug.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xpcom/base/nsDebug.cpp b/xpcom/base/nsDebug.cpp index 81b9209a631..45d66904f0b 100644 --- a/xpcom/base/nsDebug.cpp +++ b/xpcom/base/nsDebug.cpp @@ -24,6 +24,7 @@ #include "prprf.h" #include "prlog.h" #include "prinit.h" +#include "plstr.h" #if defined(XP_BEOS) /* For DEBUGGER macros */ @@ -66,7 +67,7 @@ va_start(ap, format); buffer[0] = vsnprintf((char *)buffer + 1, sizeof(buffer) - 1, format, ap); va_end(ap); - if (strstr(format, "Warning: ") == format) + if (PL_strcasestr((char *)&buffer[1], "warning")) printf("еее%s\n", (char*)buffer + 1); else DebugStr(buffer); diff --git a/xpcom/glue/nsDebug.cpp b/xpcom/glue/nsDebug.cpp index 81b9209a631..45d66904f0b 100644 --- a/xpcom/glue/nsDebug.cpp +++ b/xpcom/glue/nsDebug.cpp @@ -24,6 +24,7 @@ #include "prprf.h" #include "prlog.h" #include "prinit.h" +#include "plstr.h" #if defined(XP_BEOS) /* For DEBUGGER macros */ @@ -66,7 +67,7 @@ va_start(ap, format); buffer[0] = vsnprintf((char *)buffer + 1, sizeof(buffer) - 1, format, ap); va_end(ap); - if (strstr(format, "Warning: ") == format) + if (PL_strcasestr((char *)&buffer[1], "warning")) printf("еее%s\n", (char*)buffer + 1); else DebugStr(buffer);