Change in osmo-sgsn[master]: gbproxy: Adjust some log levels/messages

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

daniel gerrit-no-reply at lists.osmocom.org
Mon Jan 18 16:27:19 UTC 2021


daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/22287 )


Change subject: gbproxy: Adjust some log levels/messages
......................................................................

gbproxy: Adjust some log levels/messages

Related: OS#4472
Change-Id: Iea31fd5791b3b892c83f74145c26a485fffe8dc4
---
M src/gbproxy/gb_proxy.c
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/87/22287/1

diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index 1ce2716..11cc87a 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -218,9 +218,8 @@
 
 	if (!tlli) {
 		sgsn = llist_first_entry(&cfg->sgsns, struct gbproxy_sgsn, list);
-		if (!sgsn) {
+		if (!sgsn)
 			return NULL;
-		}
 		LOGPSGSN(sgsn, LOGL_INFO, "Could not get TLLI, using first SGSN\n");
 		return sgsn;
 	}
@@ -228,9 +227,8 @@
 	if (cfg->pool.nri_bitlen == 0) {
 		/* Pooling is disabled */
 		sgsn = llist_first_entry(&cfg->sgsns, struct gbproxy_sgsn, list);
-		if (!sgsn) {
+		if (!sgsn)
 			return NULL;
-		}
 
 		LOGPSGSN(sgsn, LOGL_INFO, "Pooling disabled, using first configured SGSN\n");
 	} else {
@@ -298,6 +296,8 @@
 		if (sgsn->nse != sgsn_bvc->nse)
 			continue;
 
+		DEBUGP(DGPRS, "CELL(%05u) using SGSN %s at NSE(%05u)\n", cell->bvci, sgsn->name, sgsn->nse->nsei);
+
 		return sgsn_bvc;
 	}
 

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

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: Iea31fd5791b3b892c83f74145c26a485fffe8dc4
Gerrit-Change-Number: 22287
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210118/7c918de3/attachment.htm>


More information about the gerrit-log mailing list