From 5fdc5fbe4d0c7d31a08175a27e70f98bcff6f81c Mon Sep 17 00:00:00 2001
From: winckel <winckel@eurecom.fr>
Date: Wed, 4 Dec 2013 16:22:49 +0000
Subject: [PATCH] Created a log component (TMR) for timer.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4592 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair2/UTIL/LOG/log.c | 8 ++++++++
 openair2/UTIL/LOG/log.h | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/openair2/UTIL/LOG/log.c b/openair2/UTIL/LOG/log.c
index 9c62e038d7a..d7b6ac19737 100755
--- a/openair2/UTIL/LOG/log.c
+++ b/openair2/UTIL/LOG/log.c
@@ -308,6 +308,14 @@ int logInit (void)
     g_log->log_component[ENB_APP].filelog = 0;
     g_log->log_component[ENB_APP].filelog_name = "";
 
+    g_log->log_component[TMR].name = "TMR";
+    g_log->log_component[TMR].level = LOG_EMERG;
+    g_log->log_component[TMR].flag = LOG_MED;
+    g_log->log_component[TMR].interval = 1;
+    g_log->log_component[TMR].fd = 0;
+    g_log->log_component[TMR].filelog = 0;
+    g_log->log_component[TMR].filelog_name = "";
+
     g_log->level2string[LOG_EMERG]         = "G"; //EMERG
     g_log->level2string[LOG_ALERT]         = "A"; // ALERT
     g_log->level2string[LOG_CRIT]          = "C"; // CRITIC
diff --git a/openair2/UTIL/LOG/log.h b/openair2/UTIL/LOG/log.h
index d2131a68056..f23d85a6a4d 100755
--- a/openair2/UTIL/LOG/log.h
+++ b/openair2/UTIL/LOG/log.h
@@ -258,7 +258,8 @@ typedef enum {
     HW,
     OSA,
     ENB_APP,
-    MAX_LOG_COMPONENTS
+    TMR,
+    MAX_LOG_COMPONENTS,
 } comp_name_t;
 
   //#define msg printf
-- 
GitLab