summaryrefslogtreecommitdiffstats
path: root/src/fsm.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-23 01:00:13 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-24 17:11:52 +0000
commiteeacf906dd961002dba7e53ec9144d08a2b2d0ee (patch)
treeda408ee85169f22fc12254e6b2210993996133fc /src/fsm.c
parentc7155df3ecb0a4f583a7d0e0bedc8cbb847a8fb4 (diff)
fsm: move LOGPFSMSRC and LOGPFSMLSRC to .h
LOGPFSM and LOGPFSML are in the header file, put the *SRC variants also there so users of the osmo_fsm_inst API may conveniently create own functions that log the caller's source file and line. Very useful if many action functions call the same event dispatching function, like foo_fsm_done(), and one needs to know which of the callers to debug. Change-Id: I39447b1d15237b28f88d8c5f08d82c764679dc80
Diffstat (limited to 'src/fsm.c')
-rw-r--r--src/fsm.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/fsm.c b/src/fsm.c
index c9902ae7..750f0160 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -284,19 +284,6 @@ const char *osmo_fsm_state_name(struct osmo_fsm *fsm, uint32_t state)
return fsm->states[state].name;
}
-#define LOGPFSMLSRC(fi, level, caller_file, caller_line, fmt, args...) \
- LOGPSRC((fi)->fsm->log_subsys, level, \
- caller_file, caller_line, \
- "%s{%s}: " fmt, \
- osmo_fsm_inst_name(fi), \
- osmo_fsm_state_name((fi)->fsm, (fi)->state), \
- ## args)
-
-#define LOGPFSMSRC(fi, caller_file, caller_line, fmt, args...) \
- LOGPFSMLSRC(fi, (fi)->log_level, \
- caller_file, caller_line, \
- fmt, ## args)
-
/*! \brief perform a state change of the given FSM instance
*
* Best invoke via the osmo_fsm_inst_state_chg() macro which logs the source