From 69f29c28d79d875f0d91572bebbc08fb09a11e12 Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Fri, 7 Mar 2014 15:20:24 +0000 Subject: [PATCH] prints git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5130 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/SGI/sgi.h | 6 +++--- openair-cn/SGI/sgi_task.c | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/openair-cn/SGI/sgi.h b/openair-cn/SGI/sgi.h index a89d0d4e34..e69367b7b6 100755 --- a/openair-cn/SGI/sgi.h +++ b/openair-cn/SGI/sgi.h @@ -20,9 +20,9 @@ #include "sgw_lite_ie_defs.h" #include "ip_forward_messages_types.h" -# define SGI_IF_DEBUG(x, args...) -# define SGI_IF_ERROR(x, args...) -# define SGI_IF_WARNING(x, args...) +//# define SGI_IF_DEBUG(x, args...) +//# define SGI_IF_ERROR(x, args...) +//# define SGI_IF_WARNING(x, args...) //----------------------------------------------------------------------------- #ifndef SGI_IF_DEBUG # define SGI_IF_DEBUG(x, args...) do { fprintf(stdout, "[SGI_IF][D]"x, ##args); } \ diff --git a/openair-cn/SGI/sgi_task.c b/openair-cn/SGI/sgi_task.c index 35b9af27c6..7e6fce6afe 100644 --- a/openair-cn/SGI/sgi_task.c +++ b/openair-cn/SGI/sgi_task.c @@ -124,14 +124,14 @@ static void* sgi_task_thread(void *args_p) static int sgi_create_endpoint_request(sgi_data_t *sgi_dataP, SGICreateEndpointReq *req_p) //------------------------------------------------------ { - SGICreateEndpointResp *sgi_create_endpoint_resp_p; + SGICreateEndpointResp *sgi_create_endpoint_resp_p; MessageDef *message_p; sgi_teid_mapping_t *mapping; SGI_IF_DEBUG("Rx IP_FW_CREATE_SGI_ENDPOINT_REQUEST, Context: S-GW S11 teid %u, S-GW S1U teid %u EPS bearer id %u\n", - req_p->context_teid, req_p->sgw_S1u_teid, req_p->eps_bearer_id); + req_p->context_teid, req_p->sgw_S1u_teid, req_p->eps_bearer_id); - message_p = itti_alloc_new_message(TASK_FW_IP, SGI_CREATE_ENDPOINT_RESPONSE); + message_p = itti_alloc_new_message(TASK_FW_IP, SGI_CREATE_ENDPOINT_RESPONSE); if (message_p == NULL) { return -1; } @@ -148,10 +148,10 @@ static int sgi_create_endpoint_request(sgi_data_t *sgi_dataP, SGICreateEndpointR SGI_IF_ERROR("SGI_STATUS_ERROR_CONTEXT_ALREADY_EXIST Context: S11 teid %u\n", req_p->context_teid); sgi_create_endpoint_resp_p->status = SGI_STATUS_ERROR_CONTEXT_ALREADY_EXIST; } else { - mapping = malloc(sizeof(sgi_teid_mapping_t)); - if (mapping == NULL) { + mapping = malloc(sizeof(sgi_teid_mapping_t)); + if (mapping == NULL) { sgi_create_endpoint_resp_p->status = SGI_STATUS_ERROR_NO_MEMORY_AVAILABLE; - } else { + } else { memset(mapping, 0 , sizeof(sgi_teid_mapping_t)); mapping->eps_bearer_id = req_p->eps_bearer_id; @@ -173,14 +173,14 @@ static int sgi_create_endpoint_request(sgi_data_t *sgi_dataP, SGICreateEndpointR static int sgi_update_endpoint_request(sgi_data_t *sgi_dataP, SGIUpdateEndpointReq *req_p) //------------------------------------------------------ { - SGIUpdateEndpointResp *sgi_update_endpoint_resp_p = NULL; + SGIUpdateEndpointResp *sgi_update_endpoint_resp_p = NULL; MessageDef *message_p = NULL; sgi_teid_mapping_t *mapping = NULL; SGI_IF_DEBUG("Rx IP_FW_UPDATE_SGI_ENDPOINT_REQUEST, Context: S-GW S11 teid %u, S-GW S1U teid %u EPS bearer id %u\n", - req_p->context_teid, req_p->sgw_S1u_teid, req_p->eps_bearer_id); + req_p->context_teid, req_p->sgw_S1u_teid, req_p->eps_bearer_id); - message_p = itti_alloc_new_message(TASK_FW_IP, SGI_UPDATE_ENDPOINT_RESPONSE); + message_p = itti_alloc_new_message(TASK_FW_IP, SGI_UPDATE_ENDPOINT_RESPONSE); if (message_p == NULL) { return -1; } -- GitLab