Change in osmo-bsc[master]: bsc: rsl: Set subscr log context during meas report

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

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed Dec 12 00:08:11 UTC 2018


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/12254 )

Change subject: bsc: rsl: Set subscr log context during meas report
......................................................................

bsc: rsl: Set subscr log context during meas report

Change-Id: Idc6af592e870d15491797ae6fcaffaac2b411766
---
M src/osmo-bsc/abis_rsl.c
1 file changed, 9 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c
index 954fb0f..8ffb07e 100644
--- a/src/osmo-bsc/abis_rsl.c
+++ b/src/osmo-bsc/abis_rsl.c
@@ -917,11 +917,14 @@
 {
 	int i;
 	const char *name = "";
+	struct bsc_subscr *bsub = NULL;
 
 	if (lchan && lchan->conn) {
-		if (lchan->conn->bsub)
-			name = bsc_subscr_name(lchan->conn->bsub);
-		else
+		bsub = lchan->conn->bsub;
+		if (bsub) {
+			log_set_context(LOG_CTX_BSC_SUBSCR, bsub);
+			name = bsc_subscr_name(bsub);
+		} else
 			name = lchan->name;
 	}
 
@@ -960,6 +963,9 @@
 		DEBUGP(DMEAS, "IDX=%u ARFCN=%u BSIC=%u => %d dBm\n",
 			mrc->neigh_idx, mrc->arfcn, mrc->bsic, rxlev2dbm(mrc->rxlev));
 	}
+
+	if (bsub)
+		log_set_context(LOG_CTX_BSC_SUBSCR, NULL);
 }
 
 static struct gsm_meas_rep *lchan_next_meas_rep(struct gsm_lchan *lchan)

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Idc6af592e870d15491797ae6fcaffaac2b411766
Gerrit-Change-Number: 12254
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181212/bfd406ee/attachment.htm>


More information about the gerrit-log mailing list