aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_subscriber.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-24 13:48:14 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-24 13:48:14 +0100
commit77563daf79c5ec9640fc658f4c7365b5bd4ae134 (patch)
tree09ea47d197e0472bf0cd1cfcf3e01897b60917af /openbsc/src/gsm_subscriber.c
parent19a3f0b12092598fd590c6c3fb8606dfffe332cd (diff)
Add LOGL_INFO messages about subscriber attach/detach
Diffstat (limited to 'openbsc/src/gsm_subscriber.c')
-rw-r--r--openbsc/src/gsm_subscriber.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/gsm_subscriber.c b/openbsc/src/gsm_subscriber.c
index c81b522d..74ec983a 100644
--- a/openbsc/src/gsm_subscriber.c
+++ b/openbsc/src/gsm_subscriber.c
@@ -100,12 +100,15 @@ int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts, int reason)
s->net = bts->network;
/* Indicate "attached to LAC" */
s->lac = bts->location_area_code;
+ LOGP(DMM, LOGL_INFO, "Subscriber %s ATTACHED LAC=%u\n",
+ s->imsi, s->lac);
dispatch_signal(SS_SUBSCR, S_SUBSCR_ATTACHED, s);
break;
case GSM_SUBSCRIBER_UPDATE_DETACHED:
/* Only detach if we are currently in this area */
if (bts->location_area_code == s->lac)
s->lac = GSM_LAC_RESERVED_DETACHED;
+ LOGP(DMM, LOGL_INFO, "Subscriber %s DETACHED\n", s->imsi);
dispatch_signal(SS_SUBSCR, S_SUBSCR_DETACHED, s);
break;
default: