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

This commit is contained in:
Isaac Aggrey 2012-10-13 15:56:35 -05:00
parent 220c75c473
commit 8cae05114f
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -55,7 +55,7 @@ using namespace mozilla::services;
namespace mozilla {
namespace hal {
PRLogModuleInfo *sHalLog = PR_LOG_DEFINE("hal");
PRLogModuleInfo *sHalLog = PR_NewLogModule("hal");
namespace {