mobile: log state/event details on error

Change-Id: I24a4635e9a9a0984c0e1036e8b6ea19b08a06223
This commit is contained in:
Max 2023-02-24 13:19:06 +03:00 committed by laforge
parent 9a9fca7e1d
commit e2930dad35
1 changed files with 2 additions and 1 deletions

View File

@ -4319,7 +4319,8 @@ static int gsm48_mm_ev(struct osmocom_ms *ms, int msg_type, struct msgb *msg)
&& ((1 << mm->substate) & eventstatelist[i].substates))
break;
if (i == EVENTSLLEN) {
LOGP(DMM, LOGL_NOTICE, "Message unhandled at this state.\n");
LOGP(DMM, LOGL_NOTICE, "Message %s unhandled in state %s.\n",
get_mmevent_name(msg_type), gsm48_mm_state_names[mm->state]);
return 0;
}