From 1b03104f6c5b52d9bb09b447c5b303edbc33fed7 Mon Sep 17 00:00:00 2001
From: Lionel Gauthier <lionel.gauthier@eurecom.fr>
Date: Thu, 28 May 2015 14:55:59 +0000
Subject: [PATCH] mscgen trace

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7484 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair-cn/NAS/EURECOM-NAS/src/emm/Detach.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/openair-cn/NAS/EURECOM-NAS/src/emm/Detach.c b/openair-cn/NAS/EURECOM-NAS/src/emm/Detach.c
index e5580166d1..bbf0528c08 100644
--- a/openair-cn/NAS/EURECOM-NAS/src/emm/Detach.c
+++ b/openair-cn/NAS/EURECOM-NAS/src/emm/Detach.c
@@ -477,6 +477,8 @@ int emm_proc_detach_request(unsigned int ueid, emm_proc_detach_type_t type,
   }
 
   if (switch_off) {
+	MSC_LOG_EVENT(MSC_NAS_EMM_MME,
+		    	  "0 Removing UE context ue id %06x", ueid);
     /* The UE is switched off */
     if (emm_ctx->guti) {
       free(emm_ctx->guti);
@@ -526,6 +528,11 @@ int emm_proc_detach_request(unsigned int ueid, emm_proc_detach_type_t type,
     /* Normal detach without UE switch-off */
     emm_sap_t emm_sap;
     emm_as_data_t *emm_as = &emm_sap.u.emm_as.u.data;
+	MSC_LOG_TX_MESSAGE(
+	    		MSC_NAS_EMM_MME,
+	    		MSC_NAS_EMM_MME,
+	    	  	NULL,0,
+	    	  	"0 EMM_AS_NAS_INFO_DETACH ue id %06x", ueid);
 
     /* Setup NAS information message to transfer */
     emm_as->NASinfo = EMM_AS_NAS_INFO_DETACH;
-- 
GitLab