summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-23 04:24:51 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-24 17:11:52 +0000
commitc7155df3ecb0a4f583a7d0e0bedc8cbb847a8fb4 (patch)
tree434dc9fef7e31eb34b9c5b26f81c1991c4285cc2 /src
parentb805cc19925b6815957ff470696887bfd74f2639 (diff)
fsm: log calling file+line for error "event for NULL fi"
Change-Id: I1970773440865f1415004bcf0164603468acf90b
Diffstat (limited to 'src')
-rw-r--r--src/fsm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fsm.c b/src/fsm.c
index 8675f75d..c9902ae7 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -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;
}