Change in libosmocore[master]: ns2: Fix argv index in logging filter VTY commands

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
Fri Dec 4 00:38:02 UTC 2020


daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21527 )


Change subject: ns2: Fix argv index in logging filter VTY commands
......................................................................

ns2: Fix argv index in logging filter VTY commands

Change-Id: I8adaf8094ef028b2d580e918532d6712d2ebbc2c
Related: SYS#5232
---
M src/gb/gprs_ns2_vty.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/27/21527/1

diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 9c214a3..43e9c2c 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -778,7 +778,7 @@
 {
 	struct log_target *tgt;
 	struct gprs_ns2_nse *nse;
-	uint16_t id = atoi(argv[1]);
+	uint16_t id = atoi(argv[0]);
 
 	log_tgt_mutex_lock();
 	tgt = osmo_log_vty2tgt(vty);
@@ -810,7 +810,7 @@
 {
 	struct log_target *tgt;
 	struct gprs_ns2_vc *nsvc;
-	uint16_t id = atoi(argv[1]);
+	uint16_t id = atoi(argv[0]);
 
 	log_tgt_mutex_lock();
 	tgt = osmo_log_vty2tgt(vty);

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I8adaf8094ef028b2d580e918532d6712d2ebbc2c
Gerrit-Change-Number: 21527
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/20201204/3ca1a090/attachment.htm>


More information about the gerrit-log mailing list