Adding a debug print

master
Pedro Alvarez 7 years ago
parent d5ec07185d
commit 609881855d

@ -431,6 +431,10 @@ s1ap::release_ues_ecm_ctx_in_enb(uint16_t enb_id)
//delete UEs ctx //delete UEs ctx
std::map<uint16_t,std::set<uint32_t> >::iterator ues_in_enb = m_enb_id_to_ue_ids.find(enb_id); std::map<uint16_t,std::set<uint32_t> >::iterator ues_in_enb = m_enb_id_to_ue_ids.find(enb_id);
std::set<uint32_t>::iterator ue_id = ues_in_enb->second.begin(); std::set<uint32_t>::iterator ue_id = ues_in_enb->second.begin();
if(ue_id == ues_in_enb.end())
{
m_s1ap_log->console("No UEs to be released\n");
} else{
while(ue_id != ues_in_enb->second.end() ) while(ue_id != ues_in_enb->second.end() )
{ {
std::map<uint32_t, ue_ctx_t*>::iterator ue_ctx = m_mme_ue_s1ap_id_to_ue_ctx.find(*ue_id); std::map<uint32_t, ue_ctx_t*>::iterator ue_ctx = m_mme_ue_s1ap_id_to_ue_ctx.find(*ue_id);
@ -450,6 +454,7 @@ s1ap::release_ues_ecm_ctx_in_enb(uint16_t enb_id)
ecm_ctx->enb_ue_s1ap_id = 0; ecm_ctx->enb_ue_s1ap_id = 0;
} }
} }
}
bool bool
s1ap::release_ue_ecm_ctx(uint32_t mme_ue_s1ap_id) s1ap::release_ue_ecm_ctx(uint32_t mme_ue_s1ap_id)

Loading…
Cancel
Save