[PATCH] libosmocore[master]: fix: gprs_bssgp_vty: logging filter: wrong constant

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Feb 17 16:30:08 UTC 2017


Review at  https://gerrit.osmocom.org/1843

fix: gprs_bssgp_vty: logging filter: wrong constant

Setting the BVC log filter to NULL worked only if the NSVC filter was set,
use the proper constant instead.

Change-Id: Ic1cc268ed20700698c93d3ff8bf85cc0f01d3b1b
---
M src/gb/gprs_bssgp_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/43/1843/1

diff --git a/src/gb/gprs_bssgp_vty.c b/src/gb/gprs_bssgp_vty.c
index 90e5001..1f382a2 100644
--- a/src/gb/gprs_bssgp_vty.c
+++ b/src/gb/gprs_bssgp_vty.c
@@ -49,7 +49,7 @@
 	if (bctx) {
 		target->filter_map |= (1 << FLT_BVC);
 		target->filter_data[FLT_BVC] = bctx;
-	} else if (target->filter_data[FLT_NSVC]) {
+	} else if (target->filter_data[FLT_BVC]) {
 		target->filter_map = ~(1 << FLT_BVC);
 		target->filter_data[FLT_BVC] = NULL;
 	}

-- 
To view, visit https://gerrit.osmocom.org/1843
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic1cc268ed20700698c93d3ff8bf85cc0f01d3b1b
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>


More information about the gerrit-log mailing list