From c3521038994dcd81903bc93330e97ec2a63b3053 Mon Sep 17 00:00:00 2001 From: winckel <winckel@eurecom.fr> Date: Fri, 6 Dec 2013 12:50:58 +0000 Subject: [PATCH] Cleanned-up log messages. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4626 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- targets/COMMON/create_tasks.c | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/targets/COMMON/create_tasks.c b/targets/COMMON/create_tasks.c index 68bfb850f2..63f5005813 100644 --- a/targets/COMMON/create_tasks.c +++ b/targets/COMMON/create_tasks.c @@ -53,15 +53,13 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb) { if (itti_create_task (TASK_SCTP, sctp_eNB_task, NULL) < 0) { - LOG_E (EMU, "Create task failed"); - LOG_D (EMU, "Initializing SCTP task interface: FAILED\n"); + LOG_E(EMU, "Create task for SCTP failed\n"); return -1; } if (itti_create_task (TASK_S1AP, s1ap_eNB_task, NULL) < 0) { - LOG_E (EMU, "Create task failed"); - LOG_D (EMU, "Initializing S1AP task interface: FAILED\n"); + LOG_E(EMU, "Create task for S1AP failed\n"); return -1; } } @@ -70,8 +68,7 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb) { if (itti_create_task (TASK_NAS_UE, nas_ue_task, NULL) < 0) { - LOG_E (EMU, "Create task failed"); - LOG_D (EMU, "Initializing NAS UE task interface: FAILED\n"); + LOG_E(EMU, "Create task for NAS UE failed\n"); return -1; } } @@ -82,9 +79,8 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb) { if (itti_create_task (TASK_RRC_ENB, rrc_enb_task, NULL) < 0) { - LOG_E (EMU, "Create task failed"); - LOG_D (EMU, "Initializing RRC eNB task interface: FAILED\n"); - exit (-1); + LOG_E(EMU, "Create task for RRC eNB failed\n"); + return -1; } } @@ -92,9 +88,8 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb) { if (itti_create_task (TASK_RRC_UE, rrc_ue_task, NULL) < 0) { - LOG_E (EMU, "Create task failed"); - LOG_D (EMU, "Initializing RRC UE task interface: FAILED\n"); - exit (-1); + LOG_E(EMU, "Create task for RRC UE failed\n"); + return -1; } } } @@ -102,8 +97,7 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb) if (itti_create_task (TASK_L2L1, l2l1_task, NULL) < 0) { - LOG_E (EMU, "Create task failed"); - LOG_D (EMU, "Initializing L2L1 task interface: FAILED\n"); + LOG_E(EMU, "Create task for L2L1 failed\n"); return -1; } @@ -112,8 +106,7 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb) /* Last task to create, others task must be ready before its start */ if (itti_create_task (TASK_ENB_APP, eNB_app_task, NULL) < 0) { - LOG_E (EMU, "Create task failed"); - LOG_D (EMU, "Initializing eNB APP task interface: FAILED\n"); + LOG_E(EMU, "Create task for eNB APP failed\n"); return -1; } } -- GitLab