Update ancient copyright string in -version output
PATCH v2 1/1 Update ancient copyright string in -version output
Currently the -version command line argument prints a string ending with "Copyright (c) 2003-2008 Fabrice Bellard". This is now some eight years out of date; abstract it out of the several places that print the string and update it to:
Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
to reflect the work by all the QEMU Project contributors over the last decade.
---
The aim here is to (1) update the dates and (2) acknowledge the work of all our contributors. I'm open to bikeshedding on the exact wording (or on which header file we should put the #define in...)
I only pulled out the copyright string proper into the #define because a GUI About box is going to want just that, with no leading ',' or trailing newline.
Fabrice: I have cc'd you since this is proposing an update to your copyright info.
v1->v2 changes: add the qemu-img.c string.
--- bsd-user/main.c | 3 ++- include/qemu-common.h | 4 ++++ linux-user/main.c | 2 +- qemu-img.c | 2 +- vl.c | 3 ++- 5 files changed, 10 insertions(+), 4 deletions(-)
bsd-user/main.c +2 -1
@@ -667,7 +667,8 @@ void cpu_loop(CPUSPARCState *env)static void usage (void ) { -printf ("qemu-" TARGET_NAME " version " QEMU_VERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" +printf ("qemu-" TARGET_NAME " version " QEMU_VERSION QEMU_PKGVERSION +", " QEMU_COPYRIGHT "\n" "usage: qemu-" TARGET_NAME " [options] program [arguments...]\n" "BSD CPU emulator (compiled for %s emulation)\n" "\n"
include/qemu-common.h +4 -0
@@ -18,6 +18,10 @@#include "qemu/option.h" +/* Copyright string for -version arguments, About dialogs, etc */ +#define QEMU_COPYRIGHT "Copyright (c) 2003-2016 " \ + "Fabrice Bellard and the QEMU Project developers" +/* main function, renamed */ #if defined(CONFIG_COCOA )int qemu_main (int argc,char **argv,char **envp);
linux-user/main.c +1 -1
@@ -4000,7 +4000,7 @@ static void handle_arg_strace(const char *arg)static void handle_arg_version (const char *arg) {printf ("qemu-" TARGET_NAME " version " QEMU_VERSION QEMU_PKGVERSION -", Copyright (c) 2003-2008 Fabrice Bellard\n" ); +", " QEMU_COPYRIGHT "\n" );exit (EXIT_SUCCESS ); }
qemu-img.c +1 -1
@@ -44,7 +44,7 @@#include <getopt.h> #define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \ - ", Copyright (c) 2004-2008 Fabrice Bellard\n" + ", " QEMU_COPYRIGHT "\n" typedef struct img_cmd_t { const char *name;
vl.c +2 -1
@@ -1914,7 +1914,8 @@ static void main_loop(void)static void version (void ) { -printf ("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" ); +printf ("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION ", " +QEMU_COPYRIGHT "\n" ); }static void help (int exitcode)
Signature · 1 line
1.9.1
Quoted 5 lines · Peter Maydell
Currently the -version command line argument prints a string ending with "Copyright (c) 2003-2008 Fabrice Bellard". This is now some eight years out of date; abstract it out of the several places that print the string and update it to:
Quoted 8 lines
Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
to reflect the work by all the QEMU Project contributors over the last decade.
Signed-off-by Peter Maydell <[email protected]>Acked-by Stefan Hajnoczi <[email protected]>---
Quoted 12 lines
The aim here is to (1) update the dates and (2) acknowledge the work of all our contributors. I'm open to bikeshedding on the exact wording (or on which header file we should put the #define in...)
I only pulled out the copyright string proper into the #define because a GUI About box is going to want just that, with no leading ',' or trailing newline.
Fabrice: I have cc'd you since this is proposing an update to your copyright info.
Quoted 8 lines
v1->v2changes: add theqemu-img.cstring.--- bsd-user/main.c | 3 ++- include/qemu-common.h | 4 ++++ linux-user/main.c | 2 +- qemu-img.c | 2 +- vl.c | 3 ++- 5 files changed, 10 insertions(+), 4 deletions(-)
qemu-io has a --version option that probably ought to output copyright information, but as it currently does not do so, this patch need not be the one that tweaks it.
qemu-nbd has a --version option, where the copyright info is currently:
Copyright (C) 2006 Anthony Liguori <[email protected]>.
I don't know if we want to rework that one in light of this patch, or if we can just blindly use this code. Anthony?
Quoted 4 lines
include/qemu-common.h +4
-0+/* Copyright string for -version arguments, About dialogs, etc */ +#define QEMU_COPYRIGHT "Copyright (c) 2003-2016 " \ + "Fabrice Bellard and the QEMU Project developers" +
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Peter Maydell
AppliedQuoted 18 lines · Peter Maydell
Currently the -version command line argument prints a string ending with "Copyright (c) 2003-2008 Fabrice Bellard". This is now some eight years out of date; abstract it out of the several places that print the string and update it to:
Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
to reflect the work by all the QEMU Project contributors over the last decade.
Signed-off-by Peter Maydell <[email protected]>Acked-by Stefan Hajnoczi <[email protected]>---
The aim here is to (1) update the dates and (2) acknowledge the work of all our contributors. I'm open to bikeshedding on the exact wording (or on which header file we should put the #define in...)
Quoted 8 lines
I only pulled out the copyright string proper into the #define because a GUI About box is going to want just that, with no leading ',' or trailing newline.
Fabrice: I have cc'd you since this is proposing an update to your copyright info.
v1->v2changes: add theqemu-img.cstring.
Applied to master, thanks.
-- PMM