[PATCH] 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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Wed Aug 24 16:56:34 UTC 2016


Review at  https://gerrit.osmocom.org/762

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(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/62/762/1

diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 324e0d6..c8aa124 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: newchange
Gerrit-Change-Id: Ifbf31cde24b2d1022b7a472966c17959c96e6dda
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list