Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1reF-00020G-UY for qemu-devel@nongnu.org; Fri, 22 Jun 2007 18:30:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1reD-0001zr-8Z for qemu-devel@nongnu.org; Fri, 22 Jun 2007 18:30:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1reD-0001zi-2a for qemu-devel@nongnu.org; Fri, 22 Jun 2007 18:30:33 -0400 Received: from farad.aurel32.net ([82.232.2.251] helo=mail.aurel32.net) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1reC-0004Vc-JM for qemu-devel@nongnu.org; Fri, 22 Jun 2007 18:30:32 -0400 Received: from farad.aurel32.net ([2001:618:400:fc13:216:3eff:fe00:100c]) by mail.aurel32.net with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1I1reA-0007vs-Sj for qemu-devel@nongnu.org; Sat, 23 Jun 2007 00:30:30 +0200 Received: from aurel32 by farad.aurel32.net with local (Exim 4.63) (envelope-from ) id 1I1reA-00040t-JS for qemu-devel@nongnu.org; Sat, 23 Jun 2007 00:30:30 +0200 Date: Sat, 23 Jun 2007 00:30:30 +0200 From: Aurelien Jarno Message-ID: <20070622223030.GC15407@farad.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Subject: [Qemu-devel] [PATCH] Exit error code for -M ? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, The patch below, taken from the Debian package, fixes the exit error code when the list of supported machine is requested (-M ?). asked Bye, Aurelien Index: vl.c =================================================================== RCS file: /sources/qemu/qemu/vl.c,v retrieving revision 1.310 diff -u -d -p -r1.310 vl.c --- vl.c 22 Jun 2007 08:23:44 -0000 1.310 +++ vl.c 22 Jun 2007 22:16:44 -0000 @@ -6705,7 +6707,7 @@ void help(void) #endif DEFAULT_GDBSTUB_PORT, "/tmp/qemu.log"); - exit(1); + exit(strcmp(optarg, "?")); } #define HAS_ARG 0x0001 -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net