Added support for other ITTI log messages levels to match oaisim log levels.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4430 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
winckel
2013-11-19 14:28:03 +00:00
parent 8470aa8024
commit f3362b9a8e
2 changed files with 9 additions and 2 deletions
+3 -2
View File
@@ -59,7 +59,8 @@
#include "signals.h"
#include "timer.h"
int itti_debug = 0;
const int itti_debug = 0;
const int itti_debug_poll = 0;
#define ITTI_DEBUG(x, args...) do { if (itti_debug) fprintf(stdout, "[ITTI][D]"x, ##args); fflush (stdout); } \
while(0)
@@ -564,7 +565,7 @@ void itti_poll_msg(task_id_t task_id, MessageDef **received_msg) {
}
#endif
if (*received_msg == NULL) {
if ((itti_debug_poll) && (*received_msg == NULL)) {
ITTI_DEBUG("No message in queue[(%u:%s)]\n", task_id, itti_get_task_name(task_id));
}
}