зеркало из https://github.com/mozilla/gecko-dev.git
Bug 794510: Part 4 - Use PR_NewLogModule instead of PR_LOG_DEFINE; r=ehsan,wtc
This commit is contained in:
Родитель
220c75c473
Коммит
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 {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче