Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr
☠☠ backed out by 3f1f9238e02f ☠ ☠
authorEric Rahm <erahm@mozilla.com>
Mon, 01 Jun 2015 14:31:00 -0700
changeset 246607 0615265b593c6dcf34061fc830f13c7ea82d31fe
parent 246606 fafd1dce9f080f50b35d82f7b36fefd7ab14720f
child 246608 d6b6cc373197b0c0b2e5aa8ac0b97a58a81c0749
push id28837
push usercbook@mozilla.com
push dateTue, 02 Jun 2015 11:11:35 +0000
treeherdermozilla-central@9eae3880b132 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersekr
bugs1165515
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr To fit into the new structure of mozilla logging we need to remove |ML_EMERG| (it is not used) and as an interim step we need to switch from using raw integers to the new PR_LOG levels.
media/mtransport/logging.h
--- a/media/mtransport/logging.h
+++ b/media/mtransport/logging.h
@@ -7,22 +7,21 @@
 // Original author: ekr@rtfm.com
 
 #ifndef logging_h__
 #define logging_h__
 
 #include <sstream>
 #include "mozilla/Logging.h"
 
-#define ML_EMERG            1
-#define ML_ERROR            2
-#define ML_WARNING          3
-#define ML_NOTICE           4
-#define ML_INFO             5
-#define ML_DEBUG            6
+#define ML_ERROR            PR_LOG_ERROR
+#define ML_WARNING          PR_LOG_WARNING
+#define ML_NOTICE           PR_LOG_INFO
+#define ML_INFO             PR_LOG_DEBUG
+#define ML_DEBUG            PR_LOG_VERBOSE
 
 #define MOZ_MTLOG_MODULE(n) \
   static PRLogModuleInfo* getLogModule() {      \
     static PRLogModuleInfo* log;                \
     if (!log)                                   \
       log = PR_NewLogModule(n);                 \
     return log;                                 \
   }