aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-06-16 17:20:01 +0200
committerHarald Welte <laforge@gnumonks.org>2016-06-17 15:50:48 +0000
commit7efc2f3c5bc91cc929433276bca0f5a43a3446db (patch)
tree1332cda07dc1be7c855803506b6c603e22c4a31c
parentb231e0f6cd1014afc0121ca056ca92ea467061dd (diff)
debug log: log lchan state transitions
-rw-r--r--src/common/lchan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/lchan.c b/src/common/lchan.c
index 5b6786a..fbc2636 100644
--- a/src/common/lchan.c
+++ b/src/common/lchan.c
@@ -19,9 +19,15 @@
*
*/
+#include <osmocom/core/logging.h>
+#include <osmo-bts/logging.h>
#include <osmo-bts/gsm_data.h>
void lchan_set_state(struct gsm_lchan *lchan, enum gsm_lchan_state state)
{
+ DEBUGP(DL1C, "%s state %s -> %s\n",
+ gsm_lchan_name(lchan),
+ gsm_lchans_name(lchan->state),
+ gsm_lchans_name(state));
lchan->state = state;
}