summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-12-19 18:17:10 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-23 15:14:36 +0100
commit3ea2260d00b42e6e5172d0db27aac30ca28d6640 (patch)
tree86e98df2d3c2beb7b9de4ac025d1a76c9ed9686f /openbsc
parent4b59d24f4f97f75f7f62ef31112870892d08b8f8 (diff)
sgsn: Log requested state change in sgsn_auth_update
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/sgsn_auth.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openbsc/src/gprs/sgsn_auth.c b/openbsc/src/gprs/sgsn_auth.c
index 1219176d6..5f90f5cbd 100644
--- a/openbsc/src/gprs/sgsn_auth.c
+++ b/openbsc/src/gprs/sgsn_auth.c
@@ -163,9 +163,12 @@ void sgsn_auth_update(struct sgsn_mm_ctx *mmctx)
enum sgsn_auth_state auth_state;
struct gsm_subscriber *subscr = mmctx->subscr;
- LOGMMCTXP(LOGL_DEBUG, mmctx, "Updating authorization\n");
-
auth_state = sgsn_auth_state(mmctx);
+
+ LOGMMCTXP(LOGL_DEBUG, mmctx, "Updating authorization (%s -> %s)\n",
+ get_value_string(sgsn_auth_state_names, mmctx->auth_state),
+ get_value_string(sgsn_auth_state_names, auth_state));
+
if (auth_state == SGSN_AUTH_UNKNOWN && subscr &&
!(subscr->flags & GPRS_SUBSCRIBER_UPDATE_PENDING)) {
/* Reject requests if gprs_subscr_request_update fails */