WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Make the -V option of xenconsoled actually do something.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Make the -V option of xenconsoled actually do something.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 02 Nov 2005 12:30:07 +0000
Delivery-date: Wed, 02 Nov 2005 12:27:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID e519f3239a978c708e56d5cf6ec554b8f6a6afb7
# Parent  d507f32afba966e8aadbf34c208c5fbaa5bf38db
Make the -V option of xenconsoled actually do something.

Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>

diff -r d507f32afba9 -r e519f3239a97 tools/console/daemon/main.c
--- a/tools/console/daemon/main.c       Wed Nov  2 10:25:08 2005
+++ b/tools/console/daemon/main.c       Wed Nov  2 10:25:21 2005
@@ -30,10 +30,14 @@
 #include "utils.h"
 #include "io.h"
 
-void usage(char *prg)
+static void usage(char *name)
 {
-       fprintf(stderr, 
-               "usage: %s [-h] [-V] [-v] [-i]\n", prg);
+       printf("Usage: %s [-h] [-V] [-v] [-i]\n", name);
+}
+
+static void version(char *name)
+{
+       printf("Xen Console Daemon 3.0\n");
 }
 
 int main(int argc, char **argv)
@@ -58,7 +62,7 @@
                        usage(argv[0]);
                        exit(0);
                case 'V':
-                       //version(argv[0]);
+                       version(argv[0]);
                        exit(0);
                case 'v':
                        syslog_option |= LOG_PERROR;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Make the -V option of xenconsoled actually do something., Xen patchbot -unstable <=