Change in osmo-bts[master]: oml.c: Log ADM STATE change locked/unlocked

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/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Jun 8 15:19:16 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/18726 )


Change subject: oml.c: Log ADM STATE change locked/unlocked
......................................................................

oml.c: Log ADM STATE change locked/unlocked

Use same forma tuse for other OMl states, like OPER and AVAIL states.

Change-Id: Icb176e2215841509bf15a6dfc163ceddcb602954
---
M src/common/oml.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/26/18726/1

diff --git a/src/common/oml.c b/src/common/oml.c
index d7cc7bb..c2c1248 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -1002,6 +1002,10 @@
 	if (mo->nm_state.administrative == adm_state)
 		LOGPFOH(DOML, LOGL_NOTICE, foh, "ADM state already was %s\n",
 			get_value_string(abis_nm_adm_state_names, adm_state));
+	else
+		LOGPFOH(DOML, LOGL_NOTICE, foh, "ADM STATE %s -> %s\n",
+			get_value_string(abis_nm_adm_state_names, mo->nm_state.administrative),
+			get_value_string(abis_nm_adm_state_names, adm_state));
 
 	/* Step 3: Ask BTS driver to apply the state chg */
 	return bts_model_chg_adm_state(bts, mo, obj, adm_state);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/18726
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Icb176e2215841509bf15a6dfc163ceddcb602954
Gerrit-Change-Number: 18726
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200608/59f01a9b/attachment.htm>


More information about the gerrit-log mailing list