aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-12-21 14:06:24 +0100
committerAlexander Couzens <lynxis@fe80.eu>2020-12-23 06:32:29 +0100
commita367d0863fd5e4d114ba0c124fe0bc4f49fa6187 (patch)
tree12e9f8e483210f77bd69b498bbe0271dae950ad8
parentcc65a25818a005ab532d2083903392c983051e9a (diff)
gprs_ns2: sns: add log message when size/config retries exhausted
-rw-r--r--src/gb/gprs_ns2_sns.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c
index 87471294..027d1daf 100644
--- a/src/gb/gprs_ns2_sns.c
+++ b/src/gb/gprs_ns2_sns.c
@@ -1313,16 +1313,20 @@ static int ns2_sns_fsm_bss_timer_cb(struct osmo_fsm_inst *fi)
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;