diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-12-23 04:24:51 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-12-24 17:11:52 +0000 |
commit | c7155df3ecb0a4f583a7d0e0bedc8cbb847a8fb4 (patch) | |
tree | 434dc9fef7e31eb34b9c5b26f81c1991c4285cc2 | |
parent | b805cc19925b6815957ff470696887bfd74f2639 (diff) |
fsm: log calling file+line for error "event for NULL fi"
Change-Id: I1970773440865f1415004bcf0164603468acf90b
-rw-r--r-- | src/fsm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |