Commit 5d4aac64 authored by Lionel Gauthier's avatar Lionel Gauthier

debug infos

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5853 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 6c12ea34
...@@ -443,8 +443,13 @@ int itti_send_msg_to_task(task_id_t destination_task_id, instance_t instance, Me ...@@ -443,8 +443,13 @@ int itti_send_msg_to_task(task_id_t destination_task_id, instance_t instance, Me
else else
{ {
/* We cannot send a message if the task is not running */ /* We cannot send a message if the task is not running */
AssertFatal (itti_desc.threads[destination_thread_id].task_state == TASK_STATE_READY, "Cannot send message %d to thread %d, it is not in ready state (%d)!\n", AssertFatal (itti_desc.threads[destination_thread_id].task_state == TASK_STATE_READY,
message_id, destination_thread_id, itti_desc.threads[destination_thread_id].task_state); "Task %s Cannot send message %s (%d) to thread %d, it is not in ready state (%d)!\n",
itti_get_task_name(origin_task_id),
itti_desc.messages_info[message_id].name,
message_id,
destination_thread_id,
itti_desc.threads[destination_thread_id].task_state);
/* Allocate new list element */ /* Allocate new list element */
new = (message_list_t *) itti_malloc (origin_task_id, destination_task_id, sizeof(struct message_list_s)); new = (message_list_t *) itti_malloc (origin_task_id, destination_task_id, sizeof(struct message_list_s));
...@@ -750,8 +755,11 @@ void itti_wait_ready(int wait_tasks) ...@@ -750,8 +755,11 @@ void itti_wait_ready(int wait_tasks)
{ {
itti_desc.wait_tasks = wait_tasks; itti_desc.wait_tasks = wait_tasks;
ITTI_DEBUG(ITTI_DEBUG_INIT, " wait for tasks: %s, created tasks %d, ready tasks %d\n", itti_desc.wait_tasks ? "yes" : "no", ITTI_DEBUG(ITTI_DEBUG_INIT,
itti_desc.created_tasks, itti_desc.ready_tasks); " wait for tasks: %s, created tasks %d, ready tasks %d\n",
itti_desc.wait_tasks ? "yes" : "no",
itti_desc.created_tasks,
itti_desc.ready_tasks);
AssertFatal (itti_desc.created_tasks == itti_desc.ready_tasks, "Number of created tasks (%d) does not match ready tasks (%d), wait task %d!\n", AssertFatal (itti_desc.created_tasks == itti_desc.ready_tasks, "Number of created tasks (%d) does not match ready tasks (%d), wait task %d!\n",
itti_desc.created_tasks, itti_desc.ready_tasks, itti_desc.wait_tasks); itti_desc.created_tasks, itti_desc.ready_tasks, itti_desc.wait_tasks);
......
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