* [Qemu-devel] [PATCH] Exit error code for -M ?
@ 2007-06-22 22:30 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2007-06-22 22:30 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-22 22:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22 22:30 [Qemu-devel] [PATCH] Exit error code for -M ? Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).