[PATCH] openbsc[master]: debug log: log all lchan state transitions

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
Tue Jun 21 19:42:00 UTC 2016


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

debug log: log all lchan state transitions

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


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/88/388/1

diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index fc56862..f600c6c 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -948,6 +948,9 @@
 
 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;
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic70aca65b3796c90ba1a88ea67ac7a2ad9190b69
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