[PATCH] libosmocore[master]: vty: `show stats`: fix missing name for osmocom_counters

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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Oct 4 10:04:30 UTC 2016


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

vty: `show stats`: fix missing name for osmocom_counters

`show stats` shows (null) for osmocom_counters because
it's using the counter->description which isn't filled.
Use counter->name as used by the other counter types.

OpenBSC> show  stats
Ungrouped counters:
 (null):        4

Change-Id: I553b88a6fca688924b1f2b49e8cb17e90f057bb1
---
M src/vty/utils.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/03/1003/1

diff --git a/src/vty/utils.c b/src/vty/utils.c
index 3a0f138..7e2130b 100644
--- a/src/vty/utils.c
+++ b/src/vty/utils.c
@@ -161,7 +161,7 @@
 	struct vty *vty = vctx->vty;
 
 	vty_out(vty, " %s%s: %8lu%s",
-		vctx->prefix, counter->description,
+		vctx->prefix, counter->name,
 		osmo_counter_get(counter), VTY_NEWLINE);
 
 	return 0;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I553b88a6fca688924b1f2b49e8cb17e90f057bb1
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list