aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_vty.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-12-04 01:36:59 +0100
committerdaniel <dwillmann@sysmocom.de>2020-12-04 16:52:11 +0000
commit89106524a04fd9106aa0cd9fec7739bc7f5d0689 (patch)
tree8a38387d27ae990da5dbce4fd466cbfe39621b8c /src/gb/gprs_ns2_vty.c
parenta59e6dbee3fe8bac843dc71f42b5d907fcb3aebc (diff)
ns2: Fix argv index in logging filter VTY commands
Diffstat (limited to 'src/gb/gprs_ns2_vty.c')
-rw-r--r--src/gb/gprs_ns2_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 9c214a3d..43e9c2c3 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -778,7 +778,7 @@ DEFUN(logging_fltr_nse,
{
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 @@ DEFUN(logging_fltr_nsvc,
{
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);