mirror of https://gerrit.osmocom.org/libosmocore
fsm: log calling file+line for error "event for NULL fi"
Change-Id: I1970773440865f1415004bcf0164603468acf90b
This commit is contained in:
parent
b805cc1992
commit
c7155df3ec
|
@ -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;
|
const struct osmo_fsm_state *fs;
|
||||||
|
|
||||||
if (!fi) {
|
if (!fi) {
|
||||||
LOGP(DLGLOBAL, LOGL_ERROR, "Trying to dispatch event %u to "
|
LOGPSRC(DLGLOBAL, LOGL_ERROR, file, line,
|
||||||
"non-existing FSM Instance!\n", event);
|
"Trying to dispatch event %u to non-existent"
|
||||||
|
" FSM instance!\n", event);
|
||||||
osmo_log_backtrace(DLGLOBAL, LOGL_ERROR);
|
osmo_log_backtrace(DLGLOBAL, LOGL_ERROR);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue