From 8cae05114f98dc257cec3186f779f1476dc9e7d8 Mon Sep 17 00:00:00 2001 From: Isaac Aggrey Date: Sat, 13 Oct 2012 15:56:35 -0500 Subject: [PATCH] Bug 794510: Part 4 - Use PR_NewLogModule instead of PR_LOG_DEFINE; r=ehsan,wtc --- docshell/shistory/src/nsSHistory.cpp | 2 +- dom/camera/DOMCameraManager.cpp | 2 +- hal/Hal.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docshell/shistory/src/nsSHistory.cpp b/docshell/shistory/src/nsSHistory.cpp index 757ec7a08470..33e72afb9b19 100644 --- a/docshell/shistory/src/nsSHistory.cpp +++ b/docshell/shistory/src/nsSHistory.cpp @@ -60,7 +60,7 @@ int32_t nsSHistory::sHistoryMaxTotalViewers = -1; // entries were touched, so that we can evict older entries first. static uint32_t gTouchCounter = 0; -static PRLogModuleInfo* gLogModule = PR_LOG_DEFINE("nsSHistory"); +static PRLogModuleInfo* gLogModule = PR_NewLogModule("nsSHistory"); #define LOG(format) PR_LOG(gLogModule, PR_LOG_DEBUG, format) // This macro makes it easier to print a log message which includes a URI's diff --git a/dom/camera/DOMCameraManager.cpp b/dom/camera/DOMCameraManager.cpp index eae0d0d43c6a..63ceabb7e2a9 100644 --- a/dom/camera/DOMCameraManager.cpp +++ b/dom/camera/DOMCameraManager.cpp @@ -44,7 +44,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(nsDOMCameraManager) * Set the NSPR_LOG_MODULES environment variable to enable logging * in a debug build, e.g. NSPR_LOG_MODULES=Camera:5 */ -PRLogModuleInfo* gCameraLog = PR_LOG_DEFINE("Camera"); +PRLogModuleInfo* gCameraLog = PR_NewLogModule("Camera"); /** * nsDOMCameraManager::GetListOfCameras diff --git a/hal/Hal.cpp b/hal/Hal.cpp index 3984555cc7a3..a46761a18071 100644 --- a/hal/Hal.cpp +++ b/hal/Hal.cpp @@ -55,7 +55,7 @@ using namespace mozilla::services; namespace mozilla { namespace hal { -PRLogModuleInfo *sHalLog = PR_LOG_DEFINE("hal"); +PRLogModuleInfo *sHalLog = PR_NewLogModule("hal"); namespace {