summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2012-12-28 19:29:44 +0100
committerDaniel Willmann <daniel@totalueberwachung.de>2012-12-29 12:47:31 +0100
commit977cd13741e1e80879ea5b840206044fa1817aea (patch)
tree3019c5d373caa90e36194802136a4cc67e013cf8
parent0c282f52684ac033e20ab411ab206e8559d564c9 (diff)
gsm_04_08: Display debug message correctly on DETACH INDICATIONdaniel/channel-ho-wip
Log messages would get mangled before if we receive detach by TMSI or IMSI.
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 65e6fcc..b9b3643 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -938,26 +938,28 @@ static int gsm48_rx_mm_imsi_detach_ind(struct gsm_subscriber_connection *conn, s
struct gsm_subscriber *subscr = NULL;
gsm48_mi_to_string(mi_string, sizeof(mi_string), idi->mi, idi->mi_len);
- DEBUGP(DMM, "IMSI DETACH INDICATION: mi_type=0x%02x MI(%s): ",
+ DEBUGP(DMM, "IMSI DETACH INDICATION: mi_type=0x%02x MI(%s)",
mi_type, mi_string);
osmo_counter_inc(bts->network->stats.loc_upd_type.detach);
switch (mi_type) {
case GSM_MI_TYPE_TMSI:
+ DEBUGPC(DMM, "\n");
subscr = subscr_get_by_tmsi(bts->network,
tmsi_from_string(mi_string));
break;
case GSM_MI_TYPE_IMSI:
+ DEBUGPC(DMM, "\n");
subscr = subscr_get_by_imsi(bts->network, mi_string);
break;
case GSM_MI_TYPE_IMEI:
case GSM_MI_TYPE_IMEISV:
/* no sim card... FIXME: what to do ? */
- DEBUGPC(DMM, "unimplemented mobile identity type\n");
+ DEBUGPC(DMM, ": unimplemented mobile identity type\n");
break;
default:
- DEBUGPC(DMM, "unknown mobile identity type\n");
+ DEBUGPC(DMM, ": unknown mobile identity type\n");
break;
}