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.
diff --git a/src/gsm/gsm0411_smc.c b/src/gsm/gsm0411_smc.c
index 54e6129..9fecd7e 100644
--- a/src/gsm/gsm0411_smc.c
+++ b/src/gsm/gsm0411_smc.c
@@ -303,7 +303,9 @@
/* 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;
}