Commit f3362b9a authored by winckel's avatar winckel

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
parent 8470aa80
......@@ -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));
}
}
......
......@@ -8,6 +8,12 @@ MESSAGE_DEF(MESSAGE_TEST, MESSAGE_PRIORITY_MED, struct {}, message_test)
MESSAGE_DEF(ERROR_LOG, MESSAGE_PRIORITY_MAX, struct {}, error_log)
/* Warning message */
MESSAGE_DEF(WARNING_LOG, MESSAGE_PRIORITY_MAX, struct {}, warning_log)
/* Notice message */
MESSAGE_DEF(NOTICE_LOG, MESSAGE_PRIORITY_MED, struct {}, notice_log)
/* Info message */
MESSAGE_DEF(INFO_LOG, MESSAGE_PRIORITY_MED, struct {}, info_log)
/* Debug message */
MESSAGE_DEF(DEBUG_LOG, MESSAGE_PRIORITY_MED, struct {}, debug_log)
/* Generic log message for text */
MESSAGE_DEF(GENERIC_LOG, MESSAGE_PRIORITY_MED, struct {}, generic_log)
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