diff --git a/openair2/UTIL/LOG/log.c b/openair2/UTIL/LOG/log.c index 9c62e038d7a640cd0e1d3d04f4640195d29472b8..d7b6ac19737c97693fa451ed655b8c7806533ca5 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 d2131a680568caa09eedbd9405a81d268e366f89..f23d85a6a4dc80de21fbedfc256c330b9e5eba00 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