diff --git a/content/base/src/nsDOMDataChannel.cpp b/content/base/src/nsDOMDataChannel.cpp index a6ac0ca80a70..68bb52651385 100644 --- a/content/base/src/nsDOMDataChannel.cpp +++ b/content/base/src/nsDOMDataChannel.cpp @@ -6,10 +6,6 @@ #include "nsDOMDataChannel.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include "base/basictypes.h" #include "prlog.h" diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 5b5e56236cf0..53bea7a3bc7f 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -18,10 +18,6 @@ #include "mozilla/Likely.h" #include -#ifdef MOZ_LOGGING -// so we can get logging even in release builds -#define FORCE_PR_LOG 1 -#endif #include "prlog.h" #include "plstr.h" #include "prprf.h" diff --git a/content/base/src/nsNodeInfoManager.cpp b/content/base/src/nsNodeInfoManager.cpp index 6526a93291cb..4a2ee6d7d5f2 100644 --- a/content/base/src/nsNodeInfoManager.cpp +++ b/content/base/src/nsNodeInfoManager.cpp @@ -32,10 +32,6 @@ using namespace mozilla; using mozilla::dom::NodeInfo; -#ifdef MOZ_LOGGING -// so we can get logging even in release builds -#define FORCE_PR_LOG 1 -#endif #include "prlog.h" #ifdef PR_LOGGING diff --git a/content/media/Latency.cpp b/content/media/Latency.cpp index 7270293712e9..5fa0bb4eaf1b 100644 --- a/content/media/Latency.cpp +++ b/content/media/Latency.cpp @@ -4,9 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// We want this available in opt builds -#define FORCE_PR_LOG - #include "Latency.h" #include "nsThreadUtils.h" #include "prlog.h" diff --git a/content/media/webrtc/MediaEngineWebRTC.cpp b/content/media/webrtc/MediaEngineWebRTC.cpp index a5b280bf2a4c..264872e8e34e 100644 --- a/content/media/webrtc/MediaEngineWebRTC.cpp +++ b/content/media/webrtc/MediaEngineWebRTC.cpp @@ -2,14 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - -#if defined(PR_LOG) -#error "This file must be #included before any IPDL-generated files or other files that #include prlog.h" -#endif - #include "nsIPrefService.h" #include "nsIPrefBranch.h" diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index f9647455116a..fed2d6d5fd8b 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -26,11 +26,6 @@ #include "mozilla/VisualEventTracer.h" #include "URIUtils.h" -#ifdef MOZ_LOGGING -// so we can get logging even in release builds (but only for some things) -#define FORCE_PR_LOG 1 -#endif - #include "nsIContent.h" #include "nsIContentInlines.h" #include "nsIDocument.h" diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 3ed57bdf8219..f6fb8baa9007 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -175,10 +175,6 @@ #include "nsISupportsPrimitives.h" #include "nsXPCOMCID.h" #include "mozIThirdPartyUtil.h" -#ifdef MOZ_LOGGING -// so we can get logging even in release builds -#define FORCE_PR_LOG 1 -#endif #include "prlog.h" #include "prenv.h" #include "prprf.h" diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index 20021f980fa8..9ada9a4a3a0d 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -73,10 +73,6 @@ #endif #include "AccessCheck.h" -#ifdef MOZ_LOGGING -// Force PR_LOGGING so we can get JS strict warnings even in release builds -#define FORCE_PR_LOG 1 -#endif #include "prlog.h" #include "prthread.h" diff --git a/dom/plugins/base/nsPluginLogging.h b/dom/plugins/base/nsPluginLogging.h index ba4976275be8..80260b07f118 100644 --- a/dom/plugins/base/nsPluginLogging.h +++ b/dom/plugins/base/nsPluginLogging.h @@ -8,11 +8,9 @@ #ifndef nsPluginLogging_h__ #define nsPluginLogging_h__ -#define FORCE_PR_LOG /* Allow logging in the release build */ -#define PR_LOGGING 1 +#include "prlog.h" #ifdef PR_LOGGING -#include "prlog.h" #ifndef PLUGIN_LOGGING // allow external override #define PLUGIN_LOGGING 1 // master compile-time switch for pluging logging diff --git a/extensions/auth/nsAuth.h b/extensions/auth/nsAuth.h index 8d46227116fc..d81fd61ace8e 100644 --- a/extensions/auth/nsAuth.h +++ b/extensions/auth/nsAuth.h @@ -12,10 +12,6 @@ enum pType { PACKAGE_TYPE_NTLM }; -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #include "prlog.h" #if defined( PR_LOGGING ) diff --git a/extensions/pref/autoconfig/src/nsAutoConfig.cpp b/extensions/pref/autoconfig/src/nsAutoConfig.cpp index 565bdb20ca25..0ee2e3fbc8b2 100644 --- a/extensions/pref/autoconfig/src/nsAutoConfig.cpp +++ b/extensions/pref/autoconfig/src/nsAutoConfig.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -// sorry, this has to be before the pre-compiled header -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "nsAutoConfig.h" #include "nsIURI.h" #include "nsIHttpChannel.h" diff --git a/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp b/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp index 904cf531482f..7979ef0f99ae 100644 --- a/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp +++ b/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -// sorry, this has to be before the pre-compiled header -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "jsapi.h" #include "nsIXPConnect.h" #include "nsIJSRuntimeService.h" diff --git a/extensions/pref/autoconfig/src/nsReadConfig.cpp b/extensions/pref/autoconfig/src/nsReadConfig.cpp index 5a54e8a78bae..7255916ce3bb 100644 --- a/extensions/pref/autoconfig/src/nsReadConfig.cpp +++ b/extensions/pref/autoconfig/src/nsReadConfig.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -// sorry, this has to be before the pre-compiled header -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "nsReadConfig.h" #include "nsAppDirectoryServiceDefs.h" #include "nsIAppStartup.h" diff --git a/gfx/thebes/gfxDWriteFontList.cpp b/gfx/thebes/gfxDWriteFontList.cpp index 6b34b755f82a..f14f8fa22616 100644 --- a/gfx/thebes/gfxDWriteFontList.cpp +++ b/gfx/thebes/gfxDWriteFontList.cpp @@ -6,10 +6,6 @@ #include "mozilla/ArrayUtils.h" #include "mozilla/MemoryReporting.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif /* MOZ_LOGGING */ - #include "gfxDWriteFontList.h" #include "gfxDWriteFonts.h" #include "nsUnicharUtils.h" diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index 4d6c62eef855..cc49c6be4ddd 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -7,9 +7,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/MathAlgorithms.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "prlog.h" #include "nsExpirationTracker.h" diff --git a/gfx/thebes/gfxFontEntry.cpp b/gfx/thebes/gfxFontEntry.cpp index 7d0b35b644d5..1a16de2e4d66 100644 --- a/gfx/thebes/gfxFontEntry.cpp +++ b/gfx/thebes/gfxFontEntry.cpp @@ -6,9 +6,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/MathAlgorithms.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "prlog.h" #include "nsServiceManagerUtils.h" diff --git a/gfx/thebes/gfxFontUtils.cpp b/gfx/thebes/gfxFontUtils.cpp index a7d5713323f6..680c7d3c44b7 100644 --- a/gfx/thebes/gfxFontUtils.cpp +++ b/gfx/thebes/gfxFontUtils.cpp @@ -3,11 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#include "prlog.h" -#endif - #include "mozilla/ArrayUtils.h" #include "mozilla/BinarySearch.h" diff --git a/gfx/thebes/gfxGDIFontList.cpp b/gfx/thebes/gfxGDIFontList.cpp index 0b3d8e898017..9d893b6a5362 100644 --- a/gfx/thebes/gfxGDIFontList.cpp +++ b/gfx/thebes/gfxGDIFontList.cpp @@ -6,9 +6,6 @@ #include "mozilla/DebugOnly.h" #include -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "prlog.h" #include "gfxGDIFontList.h" diff --git a/gfx/thebes/gfxMacPlatformFontList.mm b/gfx/thebes/gfxMacPlatformFontList.mm index 6110727f864a..aa103ddd7ea4 100644 --- a/gfx/thebes/gfxMacPlatformFontList.mm +++ b/gfx/thebes/gfxMacPlatformFontList.mm @@ -38,9 +38,6 @@ * * ***** END LICENSE BLOCK ***** */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "prlog.h" #include diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index 0d078c0eadd0..28fdc28ed53c 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif - #include "mozilla/layers/AsyncTransactionTracker.h" // for AsyncTransactionTracker #include "mozilla/layers/CompositorChild.h" #include "mozilla/layers/CompositorParent.h" diff --git a/gfx/thebes/gfxPlatformFontList.cpp b/gfx/thebes/gfxPlatformFontList.cpp index 298c9befda7c..b2bb822677b7 100644 --- a/gfx/thebes/gfxPlatformFontList.cpp +++ b/gfx/thebes/gfxPlatformFontList.cpp @@ -3,9 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "prlog.h" #include "gfxPlatformFontList.h" diff --git a/gfx/thebes/gfxUserFontSet.cpp b/gfx/thebes/gfxUserFontSet.cpp index ba698c7e03e1..d8d1e0395b51 100644 --- a/gfx/thebes/gfxUserFontSet.cpp +++ b/gfx/thebes/gfxUserFontSet.cpp @@ -3,9 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif /* MOZ_LOGGING */ #include "prlog.h" #include "gfxUserFontSet.h" diff --git a/image/public/ImageLogging.h b/image/public/ImageLogging.h index f40009b209bf..0ff3cf1a6696 100644 --- a/image/public/ImageLogging.h +++ b/image/public/ImageLogging.h @@ -7,16 +7,6 @@ #ifndef ImageLogging_h #define ImageLogging_h -// In order for FORCE_PR_LOG below to work, we have to define it before the -// first time prlog is #included. -#if defined(PR_LOG) -#error "Must #include ImageLogging.h before before any IPDL-generated files or other files that #include prlog.h." -#endif - -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #include "prlog.h" #include "prinrval.h" #include "nsString.h" diff --git a/js/xpconnect/loader/mozJSComponentLoader.cpp b/js/xpconnect/loader/mozJSComponentLoader.cpp index 9f032a22e6a3..70a5c6adcdf5 100644 --- a/js/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/xpconnect/loader/mozJSComponentLoader.cpp @@ -6,10 +6,6 @@ #include "mozilla/Attributes.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include #include "prlog.h" diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index b764f08cfd6f..35138310d985 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -130,10 +130,6 @@ using namespace mozilla::dom; //----------------------------------------------------- // PR LOGGING -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif - #include "prlog.h" #ifdef PR_LOGGING diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index b780580cb9f8..539ca2a44156 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -18,9 +18,6 @@ /* a presentation of a document, part 2 */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif #include "prlog.h" #include "mozilla/ArrayUtils.h" diff --git a/layout/printing/nsPrintData.cpp b/layout/printing/nsPrintData.cpp index d9339fccefff..e08e13cbd0ac 100644 --- a/layout/printing/nsPrintData.cpp +++ b/layout/printing/nsPrintData.cpp @@ -14,10 +14,6 @@ //----------------------------------------------------- // PR LOGGING -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif - #include "prlog.h" #ifdef PR_LOGGING diff --git a/layout/printing/nsPrintEngine.cpp b/layout/printing/nsPrintEngine.cpp index 463efc031737..4c4a83964569 100644 --- a/layout/printing/nsPrintEngine.cpp +++ b/layout/printing/nsPrintEngine.cpp @@ -127,10 +127,6 @@ using namespace mozilla::dom; //----------------------------------------------------- // PR LOGGING -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif - #include "prlog.h" #ifdef PR_LOGGING diff --git a/layout/style/FontFaceSet.cpp b/layout/style/FontFaceSet.cpp index 0a0410ea11fe..2702fec90759 100644 --- a/layout/style/FontFaceSet.cpp +++ b/layout/style/FontFaceSet.cpp @@ -6,9 +6,6 @@ #include "FontFaceSet.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif /* MOZ_LOGGING */ #include "prlog.h" #include "mozilla/css/Loader.h" diff --git a/layout/style/Loader.cpp b/layout/style/Loader.cpp index 4e82b4e83b0a..5cf983df3db2 100644 --- a/layout/style/Loader.cpp +++ b/layout/style/Loader.cpp @@ -254,9 +254,6 @@ private: void FireLoadEvent(nsIThreadInternal* aThread); }; -#ifdef MOZ_LOGGING -// #define FORCE_PR_LOG /* Allow logging in the release build */ -#endif /* MOZ_LOGGING */ #include "prlog.h" #ifdef PR_LOGGING diff --git a/layout/style/nsFontFaceLoader.cpp b/layout/style/nsFontFaceLoader.cpp index 608647139bee..77535b9ebf87 100644 --- a/layout/style/nsFontFaceLoader.cpp +++ b/layout/style/nsFontFaceLoader.cpp @@ -6,9 +6,6 @@ /* code for loading in @font-face defined font data */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif /* MOZ_LOGGING */ #include "prlog.h" #include "nsFontFaceLoader.h" diff --git a/media/mtransport/logging.h b/media/mtransport/logging.h index a9557e16ded4..c03907a70055 100644 --- a/media/mtransport/logging.h +++ b/media/mtransport/logging.h @@ -9,15 +9,6 @@ #ifndef logging_h__ #define logging_h__ -#if defined(PR_LOG) -#error "Must #include logging.h before any IPDL-generated files or other files that #include prlog.h." -#endif - -// Enforce logging under production builds for MOZ_MTLOG friends. -#ifndef PR_LOGGING -#define FORCE_PR_LOG 1 -#endif - #include #include diff --git a/media/webrtc/signaling/src/common/browser_logging/CSFLog.h b/media/webrtc/signaling/src/common/browser_logging/CSFLog.h index adf62019e4a9..5db2f6b8978c 100644 --- a/media/webrtc/signaling/src/common/browser_logging/CSFLog.h +++ b/media/webrtc/signaling/src/common/browser_logging/CSFLog.h @@ -5,16 +5,6 @@ #ifndef CSFLOG_H #define CSFLOG_H -// In order for FORCE_PR_LOG below to work, we have to define it before the -// first time prlog is #included. -#if defined(PR_LOG) -#error "Must #include CSFLog.h before before any IPDL-generated files or other files that #include prlog.h." -#endif - -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #include #include "prlog.h" diff --git a/netwerk/base/src/nsAsyncRedirectVerifyHelper.cpp b/netwerk/base/src/nsAsyncRedirectVerifyHelper.cpp index b48ec6284d8d..3cec758ab587 100644 --- a/netwerk/base/src/nsAsyncRedirectVerifyHelper.cpp +++ b/netwerk/base/src/nsAsyncRedirectVerifyHelper.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include "prlog.h" #include "nsAsyncRedirectVerifyHelper.h" #include "nsThreadUtils.h" diff --git a/netwerk/base/src/nsSocketTransport2.cpp b/netwerk/base/src/nsSocketTransport2.cpp index 19233f554e0e..20d8ac686ac4 100644 --- a/netwerk/base/src/nsSocketTransport2.cpp +++ b/netwerk/base/src/nsSocketTransport2.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include "nsSocketTransport2.h" #include "mozilla/Attributes.h" diff --git a/netwerk/base/src/nsSocketTransportService2.cpp b/netwerk/base/src/nsSocketTransportService2.cpp index 6c9ba3582b40..1fd9e4053ba4 100644 --- a/netwerk/base/src/nsSocketTransportService2.cpp +++ b/netwerk/base/src/nsSocketTransportService2.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include "nsSocketTransportService2.h" #include "nsSocketTransport2.h" #include "nsError.h" diff --git a/netwerk/cache/nsCache.h b/netwerk/cache/nsCache.h index c6c8a00aabee..1c733dd7f1aa 100644 --- a/netwerk/cache/nsCache.h +++ b/netwerk/cache/nsCache.h @@ -11,14 +11,6 @@ #ifndef _nsCache_h_ #define _nsCache_h_ -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - -#if defined(PR_LOG) -#error "If nsCache.h #included it must come before any files that #include prlog.h" -#endif - #include "prlog.h" #include "nsISupports.h" #include "nsIFile.h" diff --git a/netwerk/cache2/CacheLog.h b/netwerk/cache2/CacheLog.h index 68b7887d0772..b6046b1ebab2 100644 --- a/netwerk/cache2/CacheLog.h +++ b/netwerk/cache2/CacheLog.h @@ -5,14 +5,6 @@ #ifndef Cache2Log__h__ #define Cache2Log__h__ -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - -#if defined(PR_LOG) -#error "If nsCache.h #included it must come before any files that #include prlog.h" -#endif - #include "prlog.h" namespace mozilla { diff --git a/netwerk/cookie/nsCookieService.cpp b/netwerk/cookie/nsCookieService.cpp index 8362f0442752..ef53b64bea27 100644 --- a/netwerk/cookie/nsCookieService.cpp +++ b/netwerk/cookie/nsCookieService.cpp @@ -8,11 +8,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/Likely.h" -#ifdef MOZ_LOGGING -// this next define has to appear before the include of prlog.h -#define FORCE_PR_LOG // Allow logging in the release build -#endif - #include "mozilla/net/CookieServiceChild.h" #include "mozilla/net/NeckoCommon.h" diff --git a/netwerk/dns/GetAddrInfo.cpp b/netwerk/dns/GetAddrInfo.cpp index 12ac74fe0c35..c4aec0880503 100644 --- a/netwerk/dns/GetAddrInfo.cpp +++ b/netwerk/dns/GetAddrInfo.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #include "GetAddrInfo.h" #include "mozilla/net/DNS.h" #include "prnetdb.h" diff --git a/netwerk/dns/nsHostResolver.cpp b/netwerk/dns/nsHostResolver.cpp index c38279263365..7687503686e7 100644 --- a/netwerk/dns/nsHostResolver.cpp +++ b/netwerk/dns/nsHostResolver.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #if defined(HAVE_RES_NINIT) #include #include diff --git a/netwerk/protocol/http/HttpLog.h b/netwerk/protocol/http/HttpLog.h index a7a87a73efbc..e750f9dc4cbc 100644 --- a/netwerk/protocol/http/HttpLog.h +++ b/netwerk/protocol/http/HttpLog.h @@ -18,27 +18,6 @@ * Yes, this is kludgy. *******************************************************************************/ - -// e10s mess: IPDL-generated headers include chromium files that both #include -// prlog.h, and #define LOG in conflict with this file. -// Solution: (as described in bug 545995) -// 1) ensure that this file is #included before any IPDL-generated files and -// anything else that #includes prlog.h, so that we can make sure prlog.h -// sees FORCE_PR_LOG -// 2) #include IPDL boilerplate, and then undef LOG so our LOG wins. -// 3) nsNetModule.cpp does its own crazy stuff with #including prlog.h -// multiple times; allow it to define ALLOW_LATE_HTTPLOG_H_INCLUDE to bypass -// check. -#if defined(PR_LOG) && !defined(ALLOW_LATE_HTTPLOG_H_INCLUDE) -#error "If HttpLog.h #included it must come before any IPDL-generated files or other files that #include prlog.h" -#endif - -// NeckoChild.h will include chromium, which will include prlog.h so define -// PR_FORCE before we do that. -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #include "mozilla/net/NeckoChild.h" // Get rid of Chromium's LOG definition diff --git a/netwerk/protocol/websocket/WebSocketLog.h b/netwerk/protocol/websocket/WebSocketLog.h index 9c70331d5184..b0730acba130 100644 --- a/netwerk/protocol/websocket/WebSocketLog.h +++ b/netwerk/protocol/websocket/WebSocketLog.h @@ -7,14 +7,6 @@ #ifndef WebSocketLog_h #define WebSocketLog_h -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - -#if defined(PR_LOG) -#error "This file must be #included before any IPDL-generated files or other files that #include prlog.h" -#endif - #include "base/basictypes.h" #include "prlog.h" #include "mozilla/net/NeckoChild.h" diff --git a/netwerk/protocol/wyciwyg/nsWyciwyg.h b/netwerk/protocol/wyciwyg/nsWyciwyg.h index 689032f937c7..60b3b4509151 100644 --- a/netwerk/protocol/wyciwyg/nsWyciwyg.h +++ b/netwerk/protocol/wyciwyg/nsWyciwyg.h @@ -5,24 +5,9 @@ #ifndef nsWyciwyg_h__ #define nsWyciwyg_h__ -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - -// e10s mess: IPDL-generatd headers include chromium which both #includes -// prlog.h, and #defines LOG in conflict with this file. -// Solution: (as described in bug 545995) -// 1) ensure that this file is #included before any IPDL-generated files and -// anything else that #includes prlog.h, so that we can make sure prlog.h -// sees FORCE_PR_LOG if needed. -// 2) #include IPDL boilerplate, and then undef LOG so our LOG wins. -// 3) nsNetModule.cpp does its own crazy stuff with #including prlog.h -// multiple times; allow it to define ALLOW_LATE_NSHTTP_H_INCLUDE to bypass -// check. -#if defined(PR_LOG) && !defined(ALLOW_LATE_NSHTTP_H_INCLUDE) -#error "If nsWyciwyg.h #included it must come before any IPDL-generated files or other files that #include prlog.h" -#endif #include "mozilla/net/NeckoChild.h" + +// Get rid of chromium's LOG. #undef LOG #include "prlog.h" diff --git a/netwerk/sctp/datachannel/DataChannelLog.h b/netwerk/sctp/datachannel/DataChannelLog.h index 50c7b4e71f79..447a948b24d4 100644 --- a/netwerk/sctp/datachannel/DataChannelLog.h +++ b/netwerk/sctp/datachannel/DataChannelLog.h @@ -7,14 +7,6 @@ #ifndef DataChannelLog_h #define DataChannelLog_h -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - -#if defined(PR_LOG) -#error "This file must be #included before any IPDL-generated files or other files that #include prlog.h" -#endif - #include "base/basictypes.h" #include "prlog.h" diff --git a/netwerk/test/TestProtocols.cpp b/netwerk/test/TestProtocols.cpp index 3e147adecd58..c5ed54dec9e1 100644 --- a/netwerk/test/TestProtocols.cpp +++ b/netwerk/test/TestProtocols.cpp @@ -15,7 +15,6 @@ #include "TestCommon.h" #include -#define FORCE_PR_LOG #include #ifdef WIN32 #include diff --git a/security/apps/AppSignatureVerification.cpp b/security/apps/AppSignatureVerification.cpp index 8b3623c52978..14210d426562 100644 --- a/security/apps/AppSignatureVerification.cpp +++ b/security/apps/AppSignatureVerification.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG 1 -#endif - #include "nsNSSCertificateDB.h" #include "pkix/pkix.h" diff --git a/security/apps/AppTrustDomain.cpp b/security/apps/AppTrustDomain.cpp index da0361270546..0723aca1c6f5 100644 --- a/security/apps/AppTrustDomain.cpp +++ b/security/apps/AppTrustDomain.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG 1 -#endif - #include "AppTrustDomain.h" #include "certdb.h" #include "pkix/pkixnss.h" diff --git a/security/manager/boot/src/nsSecureBrowserUIImpl.cpp b/security/manager/boot/src/nsSecureBrowserUIImpl.cpp index ce0cea47e692..ed72f2870640 100644 --- a/security/manager/boot/src/nsSecureBrowserUIImpl.cpp +++ b/security/manager/boot/src/nsSecureBrowserUIImpl.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include "nspr.h" #include "prlog.h" diff --git a/security/manager/ssl/src/PSMContentListener.cpp b/security/manager/ssl/src/PSMContentListener.cpp index 5aaa46cd0f67..cd819805c221 100644 --- a/security/manager/ssl/src/PSMContentListener.cpp +++ b/security/manager/ssl/src/PSMContentListener.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG 1 -#endif - #include "PSMContentListener.h" #include "nsIStreamListener.h" diff --git a/security/manager/ssl/src/nsCryptoHash.cpp b/security/manager/ssl/src/nsCryptoHash.cpp index e49abb9b6caf..8dcba891311d 100644 --- a/security/manager/ssl/src/nsCryptoHash.cpp +++ b/security/manager/ssl/src/nsCryptoHash.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG 1 -#endif - #include #include "nsCryptoHash.h" diff --git a/security/manager/ssl/src/nsNSSComponent.cpp b/security/manager/ssl/src/nsNSSComponent.cpp index 0f6b3596ef35..8cab67bc180c 100644 --- a/security/manager/ssl/src/nsNSSComponent.cpp +++ b/security/manager/ssl/src/nsNSSComponent.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG 1 -#endif - #include "nsNSSComponent.h" #include "ExtendedValidation.h" diff --git a/uriloader/base/nsURILoader.h b/uriloader/base/nsURILoader.h index 929f9ad8791c..0c3cb920abcf 100644 --- a/uriloader/base/nsURILoader.h +++ b/uriloader/base/nsURILoader.h @@ -16,10 +16,6 @@ #include "nsIWeakReference.h" #include "mozilla/Attributes.h" -#ifdef MOZ_LOGGING -// Uncomment the next line to force logging on in release builds -// #define FORCE_PR_LOG -#endif #include "prlog.h" class nsDocumentOpenInfo; diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index 85475533bc99..54408199974a 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -4,10 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include "base/basictypes.h" /* This must occur *after* base/basictypes.h to avoid typedefs conflicts. */ diff --git a/uriloader/exthandler/nsExternalHelperAppService.h b/uriloader/exthandler/nsExternalHelperAppService.h index 8f3fec50b37f..114106a8c45a 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.h +++ b/uriloader/exthandler/nsExternalHelperAppService.h @@ -6,9 +6,6 @@ #ifndef nsExternalHelperAppService_h__ #define nsExternalHelperAppService_h__ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif #include "prlog.h" #include "prtime.h" diff --git a/uriloader/prefetch/nsOfflineCacheUpdate.cpp b/uriloader/prefetch/nsOfflineCacheUpdate.cpp index 305296309206..efc704af89cb 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdate.cpp +++ b/uriloader/prefetch/nsOfflineCacheUpdate.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #include "nsOfflineCacheUpdate.h" #include "nsCPrefetchService.h" diff --git a/uriloader/prefetch/nsOfflineCacheUpdateService.cpp b/uriloader/prefetch/nsOfflineCacheUpdateService.cpp index 65494b5b5e65..e18ebb494293 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdateService.cpp +++ b/uriloader/prefetch/nsOfflineCacheUpdateService.cpp @@ -3,10 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if defined(MOZ_LOGGING) -#define FORCE_PR_LOG -#endif - #include "OfflineCacheUpdateChild.h" #include "OfflineCacheUpdateParent.h" #include "nsXULAppAPI.h" diff --git a/widget/android/nsAppShell.cpp b/widget/android/nsAppShell.cpp index 8108035f7ad0..fe39eab45fd8 100644 --- a/widget/android/nsAppShell.cpp +++ b/widget/android/nsAppShell.cpp @@ -51,7 +51,6 @@ #endif #ifdef MOZ_LOGGING -#define FORCE_PR_LOG #include "prlog.h" #endif diff --git a/widget/cocoa/TextInputHandler.mm b/widget/cocoa/TextInputHandler.mm index bb7b295e2fac..3e0a8473db9b 100644 --- a/widget/cocoa/TextInputHandler.mm +++ b/widget/cocoa/TextInputHandler.mm @@ -8,9 +8,6 @@ #include "TextInputHandler.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif // MOZ_LOGGING #include "prlog.h" #include "mozilla/MiscEvents.h" @@ -30,11 +27,6 @@ #include #endif // __LP64__ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif -#include "prlog.h" - #ifndef __LP64__ enum { // Currently focused ChildView (while this TSM document is active). diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm index fba9b1fb4583..94c1cbc521c6 100644 --- a/widget/cocoa/nsChildView.mm +++ b/widget/cocoa/nsChildView.mm @@ -5,9 +5,6 @@ #include "mozilla/ArrayUtils.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif #include "prlog.h" #include diff --git a/widget/cocoa/nsClipboard.mm b/widget/cocoa/nsClipboard.mm index 497534e1cd18..b43b42f73e28 100644 --- a/widget/cocoa/nsClipboard.mm +++ b/widget/cocoa/nsClipboard.mm @@ -3,9 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif #include "prlog.h" #include "gfxPlatform.h" diff --git a/widget/cocoa/nsDragService.mm b/widget/cocoa/nsDragService.mm index 043a5cf95e80..c3bef08e5d99 100644 --- a/widget/cocoa/nsDragService.mm +++ b/widget/cocoa/nsDragService.mm @@ -3,9 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif #include "prlog.h" #include "nsDragService.h" diff --git a/widget/gtk/nsDeviceContextSpecG.cpp b/widget/gtk/nsDeviceContextSpecG.cpp index cbc5312a13a0..b6efed3dfc2f 100644 --- a/widget/gtk/nsDeviceContextSpecG.cpp +++ b/widget/gtk/nsDeviceContextSpecG.cpp @@ -3,9 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG 1 /* Allow logging in the release build */ -#endif /* MOZ_LOGGING */ #include "prlog.h" #include "plstr.h" diff --git a/widget/gtk/nsGtkIMModule.cpp b/widget/gtk/nsGtkIMModule.cpp index 3334e9380f3e..0bbde954b455 100644 --- a/widget/gtk/nsGtkIMModule.cpp +++ b/widget/gtk/nsGtkIMModule.cpp @@ -4,9 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif // MOZ_LOGGING #include "prlog.h" #include "prtime.h" diff --git a/widget/gtk/nsWindow.h b/widget/gtk/nsWindow.h index 10c88d307b9b..cd4bd9c60b15 100644 --- a/widget/gtk/nsWindow.h +++ b/widget/gtk/nsWindow.h @@ -37,9 +37,6 @@ #undef LOG #ifdef MOZ_LOGGING -// make sure that logging is enabled before including prlog.h -#define FORCE_PR_LOG - #include "prlog.h" #include "nsTArray.h" diff --git a/widget/qt/nsAppShell.cpp b/widget/qt/nsAppShell.cpp index 4eebd7876c12..db835236a16b 100644 --- a/widget/qt/nsAppShell.cpp +++ b/widget/qt/nsAppShell.cpp @@ -18,7 +18,6 @@ #include "nsQAppInstance.h" #ifdef MOZ_LOGGING -#define FORCE_PR_LOG #include "prlog.h" #endif diff --git a/widget/qt/nsDeviceContextSpecQt.cpp b/widget/qt/nsDeviceContextSpecQt.cpp index 12c93db11677..ea2fc0808891 100644 --- a/widget/qt/nsDeviceContextSpecQt.cpp +++ b/widget/qt/nsDeviceContextSpecQt.cpp @@ -10,9 +10,6 @@ #define SET_PRINTER_FEATURES_VIA_PREFS 1 #define PRINTERFEATURES_PREF "print.tmp.printerfeatures" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG 1 /* Allow logging in the release build */ -#endif /* MOZ_LOGGING */ #include "prlog.h" #include "plstr.h" diff --git a/widget/qt/nsWindow.h b/widget/qt/nsWindow.h index 1977d6c4eb92..14510abcdda2 100644 --- a/widget/qt/nsWindow.h +++ b/widget/qt/nsWindow.h @@ -23,9 +23,6 @@ #ifdef MOZ_LOGGING -// make sure that logging is enabled before including prlog.h -#define FORCE_PR_LOG - #include "prlog.h" #include "nsTArray.h" diff --git a/widget/windows/KeyboardLayout.cpp b/widget/windows/KeyboardLayout.cpp index 162e4beffc15..6dd5b5a2f9e9 100644 --- a/widget/windows/KeyboardLayout.cpp +++ b/widget/windows/KeyboardLayout.cpp @@ -3,9 +3,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif // MOZ_LOGGING #include "prlog.h" #include "mozilla/ArrayUtils.h" diff --git a/widget/windows/WinMouseScrollHandler.cpp b/widget/windows/WinMouseScrollHandler.cpp index d9e4d5c61be0..ac8bd81d8fce 100644 --- a/widget/windows/WinMouseScrollHandler.cpp +++ b/widget/windows/WinMouseScrollHandler.cpp @@ -6,9 +6,6 @@ #include "mozilla/DebugOnly.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif // MOZ_LOGGING #include "prlog.h" #include "WinMouseScrollHandler.h" diff --git a/widget/windows/WinUtils.cpp b/widget/windows/WinUtils.cpp index b14fd20da004..70e81bd90674 100644 --- a/widget/windows/WinUtils.cpp +++ b/widget/windows/WinUtils.cpp @@ -20,9 +20,6 @@ #include "nsIContentPolicy.h" #include "nsContentUtils.h" -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif // MOZ_LOGGING #include "prlog.h" #include "nsString.h" diff --git a/widget/windows/nsIMM32Handler.cpp b/widget/windows/nsIMM32Handler.cpp index ca4b8001262a..d1dadb50dcd5 100644 --- a/widget/windows/nsIMM32Handler.cpp +++ b/widget/windows/nsIMM32Handler.cpp @@ -4,9 +4,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif // MOZ_LOGGING #include "prlog.h" #include "nsIMM32Handler.h" diff --git a/widget/windows/nsTextStore.cpp b/widget/windows/nsTextStore.cpp index 7edf0e34fec3..6300f52a3c8d 100644 --- a/widget/windows/nsTextStore.cpp +++ b/widget/windows/nsTextStore.cpp @@ -6,9 +6,6 @@ #include #include -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG /* Allow logging in the release build */ -#endif // MOZ_LOGGING #include "prlog.h" #include "nscore.h" diff --git a/xpcom/components/nsNativeModuleLoader.cpp b/xpcom/components/nsNativeModuleLoader.cpp index 39b8a2329d3c..558b0322981e 100644 --- a/xpcom/components/nsNativeModuleLoader.cpp +++ b/xpcom/components/nsNativeModuleLoader.cpp @@ -14,11 +14,6 @@ * 04/20/2000 IBM Corp. Added PR_CALLBACK for Optlink use in OS2 */ -/* Allow logging in the release build */ -#ifdef MOZ_LOGGING -#define FORCE_PR_LOG -#endif - #include "nsNativeModuleLoader.h" #include "prlog.h" diff --git a/xpcom/threads/nsTimerImpl.h b/xpcom/threads/nsTimerImpl.h index 97628a94bcce..fc1c539c6c55 100644 --- a/xpcom/threads/nsTimerImpl.h +++ b/xpcom/threads/nsTimerImpl.h @@ -7,8 +7,6 @@ #ifndef nsTimerImpl_h___ #define nsTimerImpl_h___ -//#define FORCE_PR_LOG /* Allow logging in the release build */ - #include "nsITimer.h" #include "nsIEventTarget.h" #include "nsIObserver.h"