[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Make the -V option of xenconsoled actually do something.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |