ia64/xen-unstable

changeset 6745:3f2751c6e721

add a simple usage string to xenconsoled

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vh249@arcadians.cl.cam.ac.uk
date Sat Sep 10 14:44:31 2005 +0000 (2005-09-10)
parents bc5e0fc79696
children 9ead08216805
files tools/console/daemon/main.c
line diff
     1.1 --- a/tools/console/daemon/main.c	Sat Sep 10 14:43:46 2005 +0000
     1.2 +++ b/tools/console/daemon/main.c	Sat Sep 10 14:44:31 2005 +0000
     1.3 @@ -30,6 +30,12 @@
     1.4  #include "utils.h"
     1.5  #include "io.h"
     1.6  
     1.7 +void usage(char *prg)
     1.8 +{
     1.9 +	fprintf(stderr, 
    1.10 +		"usage: %s [-h] [-V] [-v] [-i]\n", prg);
    1.11 +}
    1.12 +
    1.13  int main(int argc, char **argv)
    1.14  {
    1.15  	const char *sopts = "hVvi";
    1.16 @@ -49,7 +55,7 @@ int main(int argc, char **argv)
    1.17  	while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
    1.18  		switch (ch) {
    1.19  		case 'h':
    1.20 -			//usage(argv[0]);
    1.21 +			usage(argv[0]);
    1.22  			exit(0);
    1.23  		case 'V':
    1.24  			//version(argv[0]);