From: Eric Blake Date: Thu, 3 Aug 2017 16:33:51 +0000 (-0500) Subject: qemu-io: Give more --version information X-Git-Tag: for-upstream.depriv-2~546^2~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4face32a7a89cc135f9589cabaced69a445a53b9;p=people%2Fiwj%2Fqemu.git qemu-io: Give more --version information Include the package version information (useful for detecting builds from git or downstream backports), and the copyright notice. Signed-off-by: Eric Blake Reviewed-by: Daniel P. Berrange Acked-by: Kevin Wolf Message-Id: <20170803163353.19558-3-eblake@redhat.com> Signed-off-by: Paolo Bonzini --- diff --git a/qemu-io.c b/qemu-io.c index 4cfa41c8f9..ec175630a6 100644 --- 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);