Change in libosmocore[master]: gprs_ns2: sns: add log message when size/config retries exhausted

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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Mon Dec 21 14:57:32 UTC 2020


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21823 )


Change subject: gprs_ns2: sns: add log message when size/config retries exhausted
......................................................................

gprs_ns2: sns: add log message when size/config retries exhausted

Change-Id: I5f7c04b364807418f5ba22132fc889b46d66aed0
---
M src/gb/gprs_ns2_sns.c
1 file changed, 8 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/23/21823/1

diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c
index 88eab6d..c9346e8 100644
--- a/src/gb/gprs_ns2_sns.c
+++ b/src/gb/gprs_ns2_sns.c
@@ -1313,16 +1313,20 @@
 	gss->N++;
 	switch (fi->T) {
 	case 1:
-		if (gss->N >= nsi->timeout[NS_TOUT_TSNS_SIZE_RETRIES])
+		if (gss->N >= nsi->timeout[NS_TOUT_TSNS_SIZE_RETRIES]) {
+			LOGPFSML(fi, LOGL_ERROR, "NSE %d: Size retries failed. Selecting next IP-SNS endpoint.\n", nse->nsei);
 			osmo_fsm_inst_dispatch(fi, GPRS_SNS_EV_SELECT_ENDPOINT, NULL);
-		else
+		} else {
 			osmo_fsm_inst_state_chg(fi, GPRS_SNS_ST_SIZE, nsi->timeout[NS_TOUT_TSNS_PROV], 1);
+		}
 		break;
 	case 2:
-		if (gss->N >= nsi->timeout[NS_TOUT_TSNS_CONFIG_RETRIES])
+		if (gss->N >= nsi->timeout[NS_TOUT_TSNS_CONFIG_RETRIES]) {
+			LOGPFSML(fi, LOGL_ERROR, "NSE %d: Config retries failed. Selecting next IP-SNS endpoint.\n", nse->nsei);
 			osmo_fsm_inst_dispatch(fi, GPRS_SNS_EV_SELECT_ENDPOINT, NULL);
-		else
+		} else {
 			osmo_fsm_inst_state_chg(fi, GPRS_SNS_ST_CONFIG_BSS, nsi->timeout[NS_TOUT_TSNS_PROV], 2);
+		}
 		break;
 	}
 	return 0;

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5f7c04b364807418f5ba22132fc889b46d66aed0
Gerrit-Change-Number: 21823
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201221/3f18c16a/attachment.htm>


More information about the gerrit-log mailing list