summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-06-21 21:34:46 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-06-23 20:57:44 +0000
commitb0cc64274a6d8d9bc14b0b7e7c50ed79d6ba1a1e (patch)
treee33f8d096a697b3281383b00f17c08b405ca1579
parentefedf805263f4e5909628ba7d7c3725114d83710 (diff)
debug log: log all lchan state transitions
-rw-r--r--openbsc/src/libbsc/abis_rsl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index db78fe3..032ff92 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -953,6 +953,9 @@ int rsl_lchan_mark_broken(struct gsm_lchan *lchan, const char *reason)
int rsl_lchan_set_state(struct gsm_lchan *lchan, int state)
{
+ DEBUGP(DRSL, "%s state %s -> %s\n",
+ gsm_lchan_name(lchan), gsm_lchans_name(lchan->state),
+ gsm_lchans_name(state));
lchan->state = state;
return 0;
}