Change in osmo-bsc[master]: abis_nm: Log no state change detected

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

laforge gerrit-no-reply at lists.osmocom.org
Sat Oct 3 07:22:55 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/20322 )

Change subject: abis_nm: Log no state change detected
......................................................................

abis_nm: Log no state change detected

Change-Id: I15695b18ad7b31c2f9579813b76ecee36cce4ede
---
M src/osmo-bsc/abis_nm.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c
index 9213aaa..158cee5 100644
--- a/src/osmo-bsc/abis_nm.c
+++ b/src/osmo-bsc/abis_nm.c
@@ -274,11 +274,11 @@
 			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 @@
 		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) {

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I15695b18ad7b31c2f9579813b76ecee36cce4ede
Gerrit-Change-Number: 20322
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201003/56e334f9/attachment.htm>


More information about the gerrit-log mailing list