Commit e16b5611 authored by gauthier's avatar gauthier

mesages from DEBUG to ERROR

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5067 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent c2ced4d0
...@@ -234,7 +234,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream, ...@@ -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. * This should not happen -> reject eNB s1 setup request.
*/ */
if (stream != 0) { 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 */ /* Send a s1 setup failure with protocol cause unspecified */
return s1ap_mme_generate_s1_setup_failure(assoc_id, S1ap_Cause_PR_protocol, return s1ap_mme_generate_s1_setup_failure(assoc_id, S1ap_Cause_PR_protocol,
S1ap_CauseProtocol_unspecified, -1); S1ap_CauseProtocol_unspecified, -1);
...@@ -273,7 +273,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream, ...@@ -273,7 +273,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream,
config_unlock(&mme_config); config_unlock(&mme_config);
if (nb_eNB_associated == max_enb_connected) { 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, S1AP_DEBUG("Connected = %d, maximum allowed = %d\n", nb_eNB_associated,
max_enb_connected); max_enb_connected);
...@@ -326,7 +326,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream, ...@@ -326,7 +326,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream,
/* Send an overload cause... */ /* Send an overload cause... */
s1SetupFailure.cause.present = S1ap_Cause_PR_misc; //TODO: send the right cause s1SetupFailure.cause.present = S1ap_Cause_PR_misc; //TODO: send the right cause
s1SetupFailure.cause.choice.misc = S1ap_CauseMisc_control_processing_overload; 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", "Previous known: %d, new one: %d\n",
eNB_id, eNB_association->sctp_assoc_id, assoc_id); eNB_id, eNB_association->sctp_assoc_id, assoc_id);
// s1ap_mme_encode_s1setupfailure(&s1SetupFailure, // s1ap_mme_encode_s1setupfailure(&s1SetupFailure,
...@@ -339,6 +339,7 @@ int s1ap_mme_handle_s1_setup_request(uint32_t assoc_id, uint32_t stream, ...@@ -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); return s1ap_generate_s1_setup_response(eNB_association);
} else { } else {
/* Can not process the request, MME is not connected to HSS */ /* 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, return s1ap_mme_generate_s1_setup_failure(assoc_id, S1ap_Cause_PR_misc,
S1ap_CauseMisc_unspecified, -1); S1ap_CauseMisc_unspecified, -1);
} }
......
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