Commit 8cae0511 authored by Isaac Aggrey's avatar Isaac Aggrey
Browse files

Bug 794510: Part 4 - Use PR_NewLogModule instead of PR_LOG_DEFINE; r=ehsan,wtc

parent 220c75c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ using namespace mozilla::services;
namespace mozilla {
namespace hal {

PRLogModuleInfo *sHalLog = PR_LOG_DEFINE("hal");
PRLogModuleInfo *sHalLog = PR_NewLogModule("hal");

namespace {