WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] add a simple usage string to xenconsoled

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] add a simple usage string to xenconsoled
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 10 Sep 2005 15:12:12 +0000
Delivery-date: Sat, 10 Sep 2005 15:10:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 3f2751c6e72113d4a985aec3ed232a62bb4429df
# Parent  bc5e0fc79696086a29cd1eddd9363afa59c0b6fb
add a simple usage string to xenconsoled

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r bc5e0fc79696 -r 3f2751c6e721 tools/console/daemon/main.c
--- a/tools/console/daemon/main.c       Sat Sep 10 14:43:46 2005
+++ b/tools/console/daemon/main.c       Sat Sep 10 14:44:31 2005
@@ -30,6 +30,12 @@
 #include "utils.h"
 #include "io.h"
 
+void usage(char *prg)
+{
+       fprintf(stderr, 
+               "usage: %s [-h] [-V] [-v] [-i]\n", prg);
+}
+
 int main(int argc, char **argv)
 {
        const char *sopts = "hVvi";
@@ -49,7 +55,7 @@
        while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
                switch (ch) {
                case 'h':
-                       //usage(argv[0]);
+                       usage(argv[0]);
                        exit(0);
                case 'V':
                        //version(argv[0]);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] add a simple usage string to xenconsoled, Xen patchbot -unstable <=