summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-06-04 13:58:42 +0000
committerHolger Freyther <zecke@selfish.org>2009-06-04 13:58:42 +0000
commiteb443983ae8e75932f0215f258f639319b349be4 (patch)
tree3e90fc354de3013d22e0b81bc499fd3ea0ad0868 /src
parent2e99605b7e73ccf31f4100d44ae4ec9e57664a31 (diff)
[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.
Diffstat (limited to 'src')
-rw-r--r--src/gsm_04_08.c3
1 files changed, 2 insertions, 1 deletions
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,