[7035] Implement --version.
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.
Modified Paths:
--------------
trunk/qemu-options.hx
trunk/vl.c
Modified: trunk/qemu-options.hx
===================================================================
qemu-options.hx +7 -0
@@ -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
===================================================================
vl.c +11 -2
@@ -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;
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Paul" == Paul Brook <[email protected]> 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?
Signature · 1 line
Bye, Peter Korsgaard
Am 08.04.2009 um 09:46 schrieb Peter Korsgaard:
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Paul" == Paul Brook <[email protected]> writes:
Paul> Revision: 7035
Paul> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7035
Paul> Author: pbrookPaul> +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
Am 08.04.2009 um 20:33 schrieb Andreas Färber:
Quoted 9 lines
Am 08.04.2009 um 09:46 schrieb Peter Korsgaard:
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Paul" == Paul Brook <[email protected]> writes:
Paul> Revision: 7035
Paul> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7035
Paul> Author: pbrook
Quoted 7 lines
Quoted 5 lines
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"