summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-11 10:09:24 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-11 10:35:33 +0100
commit09161595bde10399cbcf11a2f433c1f4fb6d6518 (patch)
treec8bca83300b35e6a6c7333907538309be1db731f /src
parente2a7c93da3a00551a9e6f05e7f8f87d6f34c32ae (diff)
smc: Print the current state of the SMS
When the connection may not released print the name of the current state to ease with debugging and verification that this is not a valid state transition.
Diffstat (limited to 'src')
-rw-r--r--src/gsm/gsm0411_smc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gsm/gsm0411_smc.c b/src/gsm/gsm0411_smc.c
index 54e6129c..9fecd7e6 100644
--- a/src/gsm/gsm0411_smc.c
+++ b/src/gsm/gsm0411_smc.c
@@ -303,7 +303,9 @@ static int gsm411_mnsms_rel_req(struct gsm411_smc_inst *inst, struct msgb *msg)
/* store release, until established or released */
if (inst->cp_state != GSM411_CPS_MM_ESTABLISHED) {
- LOGP(DLSMS, LOGL_NOTICE, "Cannot release yet.\n");
+ LOGP(DLSMS, LOGL_NOTICE,
+ "Cannot release yet current state: %s\n",
+ smc_state_names[inst->cp_state]);
inst->cp_rel = 1;
return 0;
}