From eb443983ae8e75932f0215f258f639319b349be4 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Thu, 4 Jun 2009 13:58:42 +0000 Subject: [debug] Move subscr_get_by_tmsi below the debug statement (Andreas Eversberg) subscr_get_by_tmsi might log as well and then the order of debugging it not as clear as it could be. --- src/gsm_04_08.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c index d585aaebf..fd47d8b7b 100644 --- a/src/gsm_04_08.c +++ b/src/gsm_04_08.c @@ -797,10 +797,11 @@ static int gsm48_rx_mm_serv_req(struct msgb *msg) } mi_to_string(mi_string, sizeof(mi_string), mi, mi_len); - subscr = subscr_get_by_tmsi(mi_string); DEBUGPC(DMM, "serv_type=0x%02x mi_type=0x%02x M(%s)\n", req->cm_service_type, mi_type, mi_string); + subscr = subscr_get_by_tmsi(mi_string); + /* FIXME: if we don't know the TMSI, inquire abit IMSI and allocate new TMSI */ if (!subscr) return gsm48_tx_mm_serv_rej(msg->lchan, -- cgit v1.2.3