From: Anthony Liguori <aliguori@us.ibm.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH 3/3] Make xenconsoled -V do something useful
Date: Tue, 01 Nov 2005 13:11:56 -0600 [thread overview]
Message-ID: <4367BDFC.8010702@us.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 7575-xenconsole.diff --]
[-- Type: text/plain, Size: 993 bytes --]
# HG changeset patch
# User Anthony Liguori <anthony@codemonkey.ws>
# Node ID 7c590b202af0e1d57db8764579bce12b1a98563b
# Parent a44fde5c4e15bdf2f8b42fa41439d6725a5363dc
Make the -V option of xenconsoled actually do something.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff -r a44fde5c4e15 -r 7c590b202af0 tools/console/daemon/main.c
--- a/tools/console/daemon/main.c Tue Nov 1 11:09:57 2005 -0500
+++ b/tools/console/daemon/main.c Tue Nov 1 11:15:23 2005 -0500
@@ -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;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2005-11-01 19:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4367BDFC.8010702@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.