aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-08 17:18:36 +0200
committerpespin <pespin@sysmocom.de>2020-06-09 08:46:32 +0000
commit66564ed69601d8dc12a92549e2b9d098ed83ae96 (patch)
tree5fba350c78a8b64c0915eaf48c8d5dcf980fa44b
parent59699887544c0b867ea4be1eacbb9e78dc8b9582 (diff)
oml.c: Log ADM STATE change locked/unlocked
Use same forma tuse for other OMl states, like OPER and AVAIL states. Change-Id: Icb176e2215841509bf15a6dfc163ceddcb602954
-rw-r--r--src/common/oml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index d7cc7bb5..c2c12484 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -1002,6 +1002,10 @@ static int oml_rx_chg_adm_state(struct gsm_bts *bts, struct msgb *msg)
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);