From 09161595bde10399cbcf11a2f433c1f4fb6d6518 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 11 Nov 2012 10:09:24 +0100 Subject: 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. --- src/gsm/gsm0411_smc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3