ia64/xen-unstable

changeset 7616:e519f3239a97

Make the -V option of xenconsoled actually do something.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Nov 02 11:25:21 2005 +0100 (2005-11-02)
parents d507f32afba9
children 4321438e92a7
files tools/console/daemon/main.c
line diff
     1.1 --- a/tools/console/daemon/main.c	Wed Nov 02 11:25:08 2005 +0100
     1.2 +++ b/tools/console/daemon/main.c	Wed Nov 02 11:25:21 2005 +0100
     1.3 @@ -30,10 +30,14 @@
     1.4  #include "utils.h"
     1.5  #include "io.h"
     1.6  
     1.7 -void usage(char *prg)
     1.8 +static void usage(char *name)
     1.9  {
    1.10 -	fprintf(stderr, 
    1.11 -		"usage: %s [-h] [-V] [-v] [-i]\n", prg);
    1.12 +	printf("Usage: %s [-h] [-V] [-v] [-i]\n", name);
    1.13 +}
    1.14 +
    1.15 +static void version(char *name)
    1.16 +{
    1.17 +	printf("Xen Console Daemon 3.0\n");
    1.18  }
    1.19  
    1.20  int main(int argc, char **argv)
    1.21 @@ -58,7 +62,7 @@ int main(int argc, char **argv)
    1.22  			usage(argv[0]);
    1.23  			exit(0);
    1.24  		case 'V':
    1.25 -			//version(argv[0]);
    1.26 +			version(argv[0]);
    1.27  			exit(0);
    1.28  		case 'v':
    1.29  			syslog_option |= LOG_PERROR;