diff --git a/common/utils/itti/intertask_interface.c b/common/utils/itti/intertask_interface.c index 284428348f04fdce96a68f3d1648fc21892a6554..d18634c9a5541777b2a909b0c6d265d454fda945 100644 --- a/common/utils/itti/intertask_interface.c +++ b/common/utils/itti/intertask_interface.c @@ -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)); } } diff --git a/common/utils/itti/intertask_messages_def.h b/common/utils/itti/intertask_messages_def.h index e2de4293ae785f40f180644db61e8c550ee3ca53..438381cdecfabf3e19305671ff3b361d9aa093d5 100644 --- a/common/utils/itti/intertask_messages_def.h +++ b/common/utils/itti/intertask_messages_def.h @@ -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)