[MERGED] openbsc[master]: dyn TS: debug log: if still in use, also log lchan type and ...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Aug 27 02:23:48 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: dyn TS: debug log: if still in use, also log lchan type and state
......................................................................


dyn TS: debug log: if still in use, also log lchan type and state

Change-Id: Ifbf31cde24b2d1022b7a472966c17959c96e6dda
---
M openbsc/src/libbsc/abis_rsl.c
1 file changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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;
 		}

-- 
To view, visit https://gerrit.osmocom.org/762
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifbf31cde24b2d1022b7a472966c17959c96e6dda
Gerrit-PatchSet: 2
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list