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

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Jun 24 09:30:55 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: debug log: log all lchan state transitions
......................................................................


debug log: log all lchan state transitions

Change-Id: Ic70aca65b3796c90ba1a88ea67ac7a2ad9190b69
---
M openbsc/src/libbsc/abis_rsl.c
1 file changed, 3 insertions(+), 0 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 db78fe3..032ff92 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -953,6 +953,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: merged
Gerrit-Change-Id: Ic70aca65b3796c90ba1a88ea67ac7a2ad9190b69
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