mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 794510: Part 4 - Use PR_NewLogModule instead of PR_LOG_DEFINE; r=ehsan,wtc
This commit is contained in:
parent
220c75c473
commit
8cae05114f
@ -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
|
||||
|
@ -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
|
||||
|
@ -55,7 +55,7 @@ using namespace mozilla::services;
|
||||
namespace mozilla {
|
||||
namespace hal {
|
||||
|
||||
PRLogModuleInfo *sHalLog = PR_LOG_DEFINE("hal");
|
||||
PRLogModuleInfo *sHalLog = PR_NewLogModule("hal");
|
||||
|
||||
namespace {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user