]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-io: Give more --version information
authorEric Blake <eblake@redhat.com>
Thu, 3 Aug 2017 16:33:51 +0000 (11:33 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Aug 2017 15:28:53 +0000 (17:28 +0200)
Include the package version information (useful for detecting
builds from git or downstream backports), and the copyright notice.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20170803163353.19558-3-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-io.c

index 4cfa41c8f95291a9d6ed8193f2df0a6208ead15e..ec175630a6d1effd6c316b7c344fcf433bfa06bb 100644 (file)
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -26,6 +26,7 @@
 #include "block/block_int.h"
 #include "trace/control.h"
 #include "crypto/init.h"
+#include "qemu-version.h"
 
 #define CMD_NOFILE_OK   0x01
 
@@ -522,7 +523,8 @@ int main(int argc, char **argv)
             trace_file = trace_opt_parse(optarg);
             break;
         case 'V':
-            printf("%s version %s\n", progname, QEMU_VERSION);
+            printf("%s version " QEMU_VERSION QEMU_PKGVERSION "\n"
+                   QEMU_COPYRIGHT "\n", progname);
             exit(0);
         case 'h':
             usage(progname);