[PATCH] libosmocore[master]: vty/show asciidoc: add user readable description of the version

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
Fri Oct 14 15:41:37 UTC 2016


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/1068

to look at the new patch set (#2).

vty/show asciidoc: add user readable description of the version

Change-Id: Ie0f1b3894361c58386da9defb225979fa0ee6a18
---
M src/vty/stats_vty.c
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/68/1068/2

diff --git a/src/vty/stats_vty.c b/src/vty/stats_vty.c
index 59befd2..b2143bd 100644
--- a/src/vty/stats_vty.c
+++ b/src/vty/stats_vty.c
@@ -41,6 +41,9 @@
 
 #define SHOW_STATS_STR "Show statistical values\n"
 
+/* containing version info */
+extern struct host host;
+
 struct cmd_node cfg_stats_node = {
 	CFG_STATS_NODE,
 	"%s(config-stats)# ",
@@ -484,6 +487,11 @@
       "show asciidoc counters",
       SHOW_STR "Asciidoc generation\n" "Generate table of all registered counters\n")
 {
+	vty_out(vty, "// autogenerated by show asciidoc counters%s", VTY_NEWLINE);
+	vty_out(vty, "These counters and their description based on %s %s (%s).%s",
+		host.app_info->name,
+		host.app_info->version,
+		host.app_info->name ? host.app_info->name : "", VTY_NEWLINE);
 	vty_out(vty, "// generating tables for rate_ctr_group%s", VTY_NEWLINE);
 	rate_ctr_for_each_group(asciidoc_rate_ctr_group_handler, vty);
 

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

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie0f1b3894361c58386da9defb225979fa0ee6a18
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list