dyn TS: debug log: if still in use, also log lchan type and state
Change-Id: Ifbf31cde24b2d1022b7a472966c17959c96e6dda
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 0acff21..5a53d19 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -746,9 +746,11 @@
for (ss = 0; ss < ts_subslots(ts); ss++) {
struct gsm_lchan *lc = &ts->lchan[ss];
if (lc->state != LCHAN_S_NONE) {
- DEBUGP(DRSL, "%s lchan %u still in use\n",
- gsm_ts_and_pchan_name(ts),
- lc->nr);
+ DEBUGP(DRSL, "%s lchan %u still in use"
+ " (type=%s,state=%s)\n",
+ gsm_ts_and_pchan_name(ts), lc->nr,
+ gsm_lchant_name(lc->type),
+ gsm_lchans_name(lc->state));
/* An lchan is still used. */
return false;
}