* [Qemu-devel] [7035] Implement --version.
@ 2009-04-07 22:58 Paul Brook
2009-04-08 7:46 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Paul Brook @ 2009-04-07 22:58 UTC (permalink / raw)
To: qemu-devel
Revision: 7035
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7035
Author: pbrook
Date: 2009-04-07 22:58:45 +0000 (Tue, 07 Apr 2009)
Log Message:
-----------
Implement --version.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Modified Paths:
--------------
trunk/qemu-options.hx
trunk/vl.c
Modified: trunk/qemu-options.hx
===================================================================
--- trunk/qemu-options.hx 2009-04-07 22:48:36 UTC (rev 7034)
+++ trunk/qemu-options.hx 2009-04-07 22:58:45 UTC (rev 7035)
@@ -17,6 +17,13 @@
Display help and exit
ETEXI
+DEF("version", 0, QEMU_OPTION_version,
+ "-version display version information and exit\n")
+STEXI
+@item -version
+Display version information and exit
+ETEXI
+
DEF("M", HAS_ARG, QEMU_OPTION_M,
"-M machine select emulated machine (-M ? for list)\n")
STEXI
Modified: trunk/vl.c
===================================================================
--- trunk/vl.c 2009-04-07 22:48:36 UTC (rev 7034)
+++ trunk/vl.c 2009-04-07 22:58:45 UTC (rev 7035)
@@ -3940,10 +3940,15 @@
return ret;
}
+static void version(void)
+{
+ printf("QEMU PC emulator version " QEMU_VERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n");
+}
+
static void help(int exitcode)
{
- printf("QEMU PC emulator version " QEMU_VERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n"
- "usage: %s [options] [disk_image]\n"
+ version();
+ printf("usage: %s [options] [disk_image]\n"
"\n"
"'disk_image' is a raw hard image image for IDE hard disk 0\n"
"\n"
@@ -4598,6 +4603,10 @@
case QEMU_OPTION_h:
help(0);
break;
+ case QEMU_OPTION_version:
+ version();
+ exit(0);
+ break;
case QEMU_OPTION_m: {
uint64_t value;
char *ptr;
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Qemu-devel] [7035] Implement --version. 2009-04-07 22:58 [Qemu-devel] [7035] Implement --version Paul Brook @ 2009-04-08 7:46 ` Peter Korsgaard 2009-04-08 18:33 ` Andreas Färber 0 siblings, 1 reply; 4+ messages in thread From: Peter Korsgaard @ 2009-04-08 7:46 UTC (permalink / raw) To: qemu-devel >>>>> "Paul" == Paul Brook <paul@nowt.org> writes: Paul> Revision: 7035 Paul> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7035 Paul> Author: pbrook Paul> +static void version(void) Paul> +{ Paul> + printf("QEMU PC emulator version " QEMU_VERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n"); How about changing that to 2009 while you're at it? -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [7035] Implement --version. 2009-04-08 7:46 ` Peter Korsgaard @ 2009-04-08 18:33 ` Andreas Färber 2009-04-08 18:36 ` Andreas Färber 0 siblings, 1 reply; 4+ messages in thread From: Andreas Färber @ 2009-04-08 18:33 UTC (permalink / raw) To: qemu-devel Am 08.04.2009 um 09:46 schrieb Peter Korsgaard: >>>>>> "Paul" == Paul Brook <paul@nowt.org> writes: > > Paul> Revision: 7035 > Paul> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7035 > Paul> Author: pbrook > > Paul> +static void version(void) > Paul> +{ > Paul> + printf("QEMU PC emulator version " QEMU_VERSION ", > Copyright (c) 2003-2008 Fabrice Bellard\n"); > > How about changing that to 2009 while you're at it? See the "Next stable release" thread for an unfinished discussion on this. Andreas ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [7035] Implement --version. 2009-04-08 18:33 ` Andreas Färber @ 2009-04-08 18:36 ` Andreas Färber 0 siblings, 0 replies; 4+ messages in thread From: Andreas Färber @ 2009-04-08 18:36 UTC (permalink / raw) To: qemu-devel Am 08.04.2009 um 20:33 schrieb Andreas Färber: > > Am 08.04.2009 um 09:46 schrieb Peter Korsgaard: > >>>>>>> "Paul" == Paul Brook <paul@nowt.org> writes: >> >> Paul> Revision: 7035 >> Paul> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7035 >> Paul> Author: pbrook >> >> Paul> +static void version(void) >> Paul> +{ >> Paul> + printf("QEMU PC emulator version " QEMU_VERSION ", >> Copyright (c) 2003-2008 Fabrice Bellard\n"); >> >> How about changing that to 2009 while you're at it? > > See the "Next stable release" thread for an unfinished discussion on > this. Sorry, it was in: "Changing the QEMU svn VERSION string" ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-08 18:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-04-07 22:58 [Qemu-devel] [7035] Implement --version Paul Brook 2009-04-08 7:46 ` Peter Korsgaard 2009-04-08 18:33 ` Andreas Färber 2009-04-08 18:36 ` Andreas Färber
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.