import changes from `dev' branch of rmottola/Arctic-Fox:

- Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj (034b6056f)
- Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj (38739377e)
- Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj (867725f77)
- Bug 1165515 - Part 7: Convert PR_LOG_DEBUG + 1 to PR_LOG_VERBOSE. rs=froydnj (afe55d0b8)
- Bug 1165515 - Part 8: Convert log level 6 to PR_LOG_VERBOSE. r=jesup (d01127f2c)
- Bug 1165515 - Part 9: Remove instances of using numeric log levels 15. rs=froydnj (2ff8b0056)
- Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr (a0334c607)
- Bug 1165515 - Part 11: Align CSFLogLevel with PR_LOG levels. r=jesup (ca57ae88a)
- Bug 1165515 - Part 12: Convert nsPluginLogging to use PR_LOG levels. r=bsmedberg (1f3226ca8)
- Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj (96db7f2e9)
- Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj (81d9dc8e5)
- fix some bustage after Bug 1165515 - Part 14, stuff missed in part 13 (80c83c78d)
- Bug 1165515 - Part 15: Reduce log level of WebRTC during testing. r=jesup (dda33e173)
This commit is contained in:
2021-03-01 10:32:55 +08:00
parent eb7ab47f85
commit 3ea1cc0dd0
376 changed files with 2627 additions and 2588 deletions
+7 -7
View File
@@ -82,7 +82,7 @@ TimerObserverRunnable::Run()
nsresult
TimerThread::Init()
{
PR_LOG(GetTimerLog(), PR_LOG_DEBUG,
MOZ_LOG(GetTimerLog(), LogLevel::Debug,
("TimerThread::Init [%d]\n", mInitialized));
if (mInitialized) {
@@ -129,7 +129,7 @@ TimerThread::Init()
nsresult
TimerThread::Shutdown()
{
PR_LOG(GetTimerLog(), PR_LOG_DEBUG, ("TimerThread::Shutdown begin\n"));
MOZ_LOG(GetTimerLog(), LogLevel::Debug, ("TimerThread::Shutdown begin\n"));
if (!mThread) {
return NS_ERROR_NOT_INITIALIZED;
@@ -167,7 +167,7 @@ TimerThread::Shutdown()
mThread->Shutdown(); // wait for the thread to die
PR_LOG(GetTimerLog(), PR_LOG_DEBUG, ("TimerThread::Shutdown end\n"));
MOZ_LOG(GetTimerLog(), LogLevel::Debug, ("TimerThread::Shutdown end\n"));
return NS_OK;
}
@@ -260,7 +260,7 @@ TimerThread::Run()
RemoveTimerInternal(timer);
timer = nullptr;
PR_LOG(GetTimerLog(), PR_LOG_DEBUG,
MOZ_LOG(GetTimerLog(), LogLevel::Debug,
("Timer thread woke up %fms from when it was supposed to\n",
fabs((now - timerRef->mTimeout).ToMilliseconds())));
@@ -342,12 +342,12 @@ TimerThread::Run()
}
}
if (PR_LOG_TEST(GetTimerLog(), PR_LOG_DEBUG)) {
if (MOZ_LOG_TEST(GetTimerLog(), LogLevel::Debug)) {
if (waitFor == PR_INTERVAL_NO_TIMEOUT)
PR_LOG(GetTimerLog(), PR_LOG_DEBUG,
MOZ_LOG(GetTimerLog(), LogLevel::Debug,
("waiting for PR_INTERVAL_NO_TIMEOUT\n"));
else
PR_LOG(GetTimerLog(), PR_LOG_DEBUG,
MOZ_LOG(GetTimerLog(), LogLevel::Debug,
("waiting for %u\n", PR_IntervalToMilliseconds(waitFor)));
}
}