]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Put the copyright information on a separate line
authorThomas Huth <thuth@redhat.com>
Wed, 5 Oct 2016 09:54:44 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Oct 2016 09:30:55 +0000 (11:30 +0200)
The output string QEMU with "--version" is very long, it does
not fit into a normal line of a terminal window anymore. By
putting the copyright information on a separate line instead,
the output looks much nicer.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1475661284-30153-1-git-send-email-thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bsd-user/main.c
linux-user/main.c
qemu-img.c
vl.c

index 4fd7b6396dfd04b162e11abcd3c4152477d46e35..714a692e6faac37d7c380fc8be57bf3b48277f48 100644 (file)
@@ -651,7 +651,7 @@ void cpu_loop(CPUSPARCState *env)
 static void usage(void)
 {
     printf("qemu-" TARGET_NAME " version " QEMU_VERSION QEMU_PKGVERSION
-           "" QEMU_COPYRIGHT "\n"
+           "\n" QEMU_COPYRIGHT "\n"
            "usage: qemu-" TARGET_NAME " [options] program [arguments...]\n"
            "BSD CPU emulator (compiled for %s emulation)\n"
            "\n"
index 18d5a62a163d6ad59758f0ba795700a503df2793..c6f2e20c097c075e5c393aab17487fcbec81397d 100644 (file)
@@ -3956,7 +3956,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
-           "" QEMU_COPYRIGHT "\n");
+           "\n" QEMU_COPYRIGHT "\n");
     exit(EXIT_SUCCESS);
 }
 
index 02c07b913dd8e00f017715bbe2033f58df640af1..67e851248aaf902dcaaba7cab9ace2f87e9a6bde 100644 (file)
@@ -44,7 +44,7 @@
 #include <getopt.h>
 
 #define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \
-                          "" QEMU_COPYRIGHT "\n"
+                          "\n" QEMU_COPYRIGHT "\n"
 
 typedef struct img_cmd_t {
     const char *name;
diff --git a/vl.c b/vl.c
index ebd47af6cd16c610e4a6c25ba0be4b45fd91d6a8..2e152acbc7436cd762fcb3e4e710b863ee4c8eaa 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1958,7 +1958,7 @@ static void main_loop(void)
 
 static void version(void)
 {
-    printf("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION ""
+    printf("QEMU emulator version " QEMU_VERSION QEMU_PKGVERSION "\n"
            QEMU_COPYRIGHT "\n");
 }