Commit 5fdc5fbe authored by winckel's avatar winckel
Browse files

Created a log component (TMR) for timer.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4592 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 678668da
...@@ -308,6 +308,14 @@ int logInit (void) ...@@ -308,6 +308,14 @@ int logInit (void)
g_log->log_component[ENB_APP].filelog = 0; g_log->log_component[ENB_APP].filelog = 0;
g_log->log_component[ENB_APP].filelog_name = ""; 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_EMERG] = "G"; //EMERG
g_log->level2string[LOG_ALERT] = "A"; // ALERT g_log->level2string[LOG_ALERT] = "A"; // ALERT
g_log->level2string[LOG_CRIT] = "C"; // CRITIC g_log->level2string[LOG_CRIT] = "C"; // CRITIC
......
...@@ -258,7 +258,8 @@ typedef enum { ...@@ -258,7 +258,8 @@ typedef enum {
HW, HW,
OSA, OSA,
ENB_APP, ENB_APP,
MAX_LOG_COMPONENTS TMR,
MAX_LOG_COMPONENTS,
} comp_name_t; } comp_name_t;
//#define msg printf //#define msg printf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment