From e16b56116616eaf84ff86a4c1c85af0701a8d6b5 Mon Sep 17 00:00:00 2001
From: Lionel Gauthier <lionel.gauthier@eurecom.fr>
Date: Mon, 10 Feb 2014 14:44:49 +0000
Subject: [PATCH] mesages from DEBUG to ERROR

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5067 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair-cn/S1AP/s1ap_mme_handlers.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/openair-cn/S1AP/s1ap_mme_handlers.c b/openair-cn/S1AP/s1ap_mme_handlers.c
index 5fe8af7c7f..c077cf3978 100644
--- a/openair-cn/S1AP/s1ap_mme_handlers.c
+++ b/openair-cn/S1AP/s1ap_mme_handlers.c
@@ -234,7 +234,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream,
          * This should not happen -> reject eNB s1 setup request.
          */
         if (stream != 0) {
-            S1AP_DEBUG("Received new s1 setup request on stream != 0\n");
+            S1AP_ERROR("Received new s1 setup request on stream != 0\n");
             /* Send a s1 setup failure with protocol cause unspecified */
             return s1ap_mme_generate_s1_setup_failure(assoc_id, S1ap_Cause_PR_protocol,
                                                       S1ap_CauseProtocol_unspecified, -1);
@@ -273,7 +273,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream,
         config_unlock(&mme_config);
 
         if (nb_eNB_associated == max_enb_connected) {
-            S1AP_DEBUG("There is too much eNB connected to MME, rejecting the association\n");
+            S1AP_ERROR("There is too much eNB connected to MME, rejecting the association\n");
             S1AP_DEBUG("Connected = %d, maximum allowed = %d\n", nb_eNB_associated,
                        max_enb_connected);
 
@@ -326,7 +326,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream,
                 /* Send an overload cause... */
                 s1SetupFailure.cause.present = S1ap_Cause_PR_misc; //TODO: send the right cause
                 s1SetupFailure.cause.choice.misc = S1ap_CauseMisc_control_processing_overload;
-                S1AP_DEBUG("Rejeting s1 setup request as eNB id %d is already associated to an active sctp association"
+                S1AP_ERROR("Rejeting s1 setup request as eNB id %d is already associated to an active sctp association"
                            "Previous known: %d, new one: %d\n",
                            eNB_id, eNB_association->sctp_assoc_id, assoc_id);
     //             s1ap_mme_encode_s1setupfailure(&s1SetupFailure,
@@ -339,6 +339,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream,
         return s1ap_generate_s1_setup_response(eNB_association);
     } else {
         /* Can not process the request, MME is not connected to HSS */
+        S1AP_ERROR("Rejecting s1 setup request Can not process the request, MME is not connected to HSS\n");
         return s1ap_mme_generate_s1_setup_failure(assoc_id, S1ap_Cause_PR_misc,
                                                   S1ap_CauseMisc_unspecified, -1);
     }
-- 
GitLab