Change in libosmocore[master]: gprs_ns2_vty: Show NSVCI in dump_nsvc()

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

laforge gerrit-no-reply at lists.osmocom.org
Tue Dec 1 17:02:03 UTC 2020


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


Change subject: gprs_ns2_vty: Show NSVCI in dump_nsvc()
......................................................................

gprs_ns2_vty: Show NSVCI in dump_nsvc()

also, indent the statistics one more character

Change-Id: I2726d6f1c5f83255925d6a1b22f1ee71b8d6fdc5
---
M src/gb/gprs_ns2_vty.c
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/30/21430/1

diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 8514704..17b8d96 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -260,11 +260,11 @@
 
 static void dump_nsvc(struct vty *vty, struct gprs_ns2_vc *nsvc, bool stats)
 {
-	vty_out(vty, " %s%s", gprs_ns2_ll_str(nsvc), VTY_NEWLINE);
+	vty_out(vty, " NSVCI %05u %s%s", nsvc->nsvci, gprs_ns2_ll_str(nsvc), VTY_NEWLINE);
 
 	if (stats) {
-		vty_out_rate_ctr_group(vty, " ", nsvc->ctrg);
-		vty_out_stat_item_group(vty, " ", nsvc->statg);
+		vty_out_rate_ctr_group(vty, "  ", nsvc->ctrg);
+		vty_out_stat_item_group(vty, "  ", nsvc->statg);
 	}
 }
 

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2726d6f1c5f83255925d6a1b22f1ee71b8d6fdc5
Gerrit-Change-Number: 21430
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201201/a0f29d29/attachment.htm>


More information about the gerrit-log mailing list