Commit 3280218c authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5452 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent d09815bf
...@@ -507,6 +507,7 @@ void *l2l1_task(void *args_p) { ...@@ -507,6 +507,7 @@ void *l2l1_task(void *args_p) {
#if defined(ENABLE_ITTI) #if defined(ENABLE_ITTI)
MessageDef *message_p = NULL; MessageDef *message_p = NULL;
const char *msg_name = NULL;
int result; int result;
itti_mark_task_ready (TASK_L2L1); itti_mark_task_ready (TASK_L2L1);
...@@ -520,6 +521,8 @@ void *l2l1_task(void *args_p) { ...@@ -520,6 +521,8 @@ void *l2l1_task(void *args_p) {
AssertFatal (result == EXIT_SUCCESS, "Failed to free memory (%d)!\n", result); AssertFatal (result == EXIT_SUCCESS, "Failed to free memory (%d)!\n", result);
} }
itti_receive_msg (TASK_L2L1, &message_p); itti_receive_msg (TASK_L2L1, &message_p);
msg_name = ITTI_MSG_NAME (message_p);
LOG_I(EMU, "TASK_L2L1 received %s in state L2L1_WAITTING\n", msg_name);
switch (ITTI_MSG_ID(message_p)) { switch (ITTI_MSG_ID(message_p)) {
case INITIALIZE_MESSAGE: case INITIALIZE_MESSAGE:
...@@ -558,6 +561,8 @@ void *l2l1_task(void *args_p) { ...@@ -558,6 +561,8 @@ void *l2l1_task(void *args_p) {
itti_poll_msg (TASK_L2L1, &message_p); itti_poll_msg (TASK_L2L1, &message_p);
if (message_p != NULL) { if (message_p != NULL) {
msg_name = ITTI_MSG_NAME (message_p);
LOG_I(EMU, "TASK_L2L1 received %s\n", msg_name);
switch (ITTI_MSG_ID(message_p)) { switch (ITTI_MSG_ID(message_p)) {
case ACTIVATE_MESSAGE: case ACTIVATE_MESSAGE:
set_cli_start(ITTI_MSG_INSTANCE (message_p), 1); set_cli_start(ITTI_MSG_INSTANCE (message_p), 1);
...@@ -572,7 +577,6 @@ void *l2l1_task(void *args_p) { ...@@ -572,7 +577,6 @@ void *l2l1_task(void *args_p) {
break; break;
case MESSAGE_TEST: case MESSAGE_TEST:
LOG_I(EMU, "Received %s\n", ITTI_MSG_NAME(message_p));
break; break;
......
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