From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH 3/3] Make xenconsoled -V do something useful Date: Tue, 01 Nov 2005 13:11:56 -0600 Message-ID: <4367BDFC.8010702@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070002020408070407070100" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------070002020408070407070100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------070002020408070407070100 Content-Type: text/plain; name="7575-xenconsole.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="7575-xenconsole.diff" # HG changeset patch # User Anthony Liguori # Node ID 7c590b202af0e1d57db8764579bce12b1a98563b # Parent a44fde5c4e15bdf2f8b42fa41439d6725a5363dc Make the -V option of xenconsoled actually do something. Signed-off-by: Anthony Liguori 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; --------------070002020408070407070100 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------070002020408070407070100--