diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-09-30 12:45:57 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-10-02 19:31:43 +0200 |
commit | beac3d2c98570129d42a8a53db8895b7f97d6e72 (patch) | |
tree | 53d955e133be3ef078c9119b3530f62fd15587ce /src/osmo-bsc/abis_nm.c | |
parent | d2313548e754a0a20c635dd3196ac262749d6368 (diff) |
abis_nm: Log no state change detected
Change-Id: I15695b18ad7b31c2f9579813b76ecee36cce4ede
Diffstat (limited to 'src/osmo-bsc/abis_nm.c')
-rw-r--r-- | src/osmo-bsc/abis_nm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c index 9213aaaf2..158cee5f4 100644 --- a/src/osmo-bsc/abis_nm.c +++ b/src/osmo-bsc/abis_nm.c @@ -274,11 +274,11 @@ static int abis_nm_rx_statechg_rep(struct msgb *mb) get_value_string(abis_nm_adm_state_names, new_state.administrative)); } - DEBUGPC(DNM, "\n"); if ((new_state.administrative != 0 && nm_state->administrative == 0) || new_state.operational != nm_state->operational || new_state.availability != nm_state->availability) { + DEBUGPC(DNM, "\n"); /* Update the operational state of a given object in our in-memory data * structures and send an event to the higher layer */ struct nm_statechg_signal_data nsd; @@ -293,6 +293,8 @@ static int abis_nm_rx_statechg_rep(struct msgb *mb) nm_state->availability = new_state.availability; if (nm_state->administrative == 0) nm_state->administrative = new_state.administrative; + } else { + DEBUGPC(DNM, "(No State change detected)\n"); } #if 0 if (op_state == 1) { |