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 16:52:12 UTC 2020


daniel has submitted this change. ( 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(-)

Approvals:
  daniel: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



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: 2
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201204/d22cb11b/attachment.htm>


More information about the gerrit-log mailing list