fsm: log calling file+line for error "event for NULL fi"

Change-Id: I1970773440865f1415004bcf0164603468acf90b
This commit is contained in:
Neels Hofmeyr 2016-12-23 04:24:51 +01:00 committed by Harald Welte
parent b805cc1992
commit c7155df3ec
1 changed files with 3 additions and 2 deletions

View File

@ -384,8 +384,9 @@ int _osmo_fsm_inst_dispatch(struct osmo_fsm_inst *fi, uint32_t event, void *data
const struct osmo_fsm_state *fs;
if (!fi) {
LOGP(DLGLOBAL, LOGL_ERROR, "Trying to dispatch event %u to "
"non-existing FSM Instance!\n", event);
LOGPSRC(DLGLOBAL, LOGL_ERROR, file, line,
"Trying to dispatch event %u to non-existent"
" FSM instance!\n", event);
osmo_log_backtrace(DLGLOBAL, LOGL_ERROR);
return -ENODEV;
}