[virt-tools-list] [virt-viewer v3 05/10] Show osid in remote-viewer --version

Christophe Fergeau cfergeau at redhat.com
Tue Jun 9 10:38:16 UTC 2015


---
 src/remote-viewer-main.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/remote-viewer-main.c b/src/remote-viewer-main.c
index 749fac1..81cf736 100644
--- a/src/remote-viewer-main.c
+++ b/src/remote-viewer-main.c
@@ -47,7 +47,11 @@
 static void
 remote_viewer_version(void)
 {
-    g_print(_("remote-viewer version %s\n"), VERSION BUILDID);
+    g_print(_("remote-viewer version %s"), VERSION BUILDID);
+#ifdef REMOTE_VIEWER_OS_ID
+    g_print(" (OS ID: %s)", REMOTE_VIEWER_OS_ID);
+#endif
+    g_print("\n");
     exit(EXIT_SUCCESS);
 }
 
-- 
2.4.2




More information about the virt-tools-list mailing list