diff options
author | Eric Blake <eblake@redhat.com> | 2017-08-03 11:33:51 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-08-08 17:28:53 +0200 |
commit | 4face32a7a89cc135f9589cabaced69a445a53b9 (patch) | |
tree | d8aa315f2e80bd3ef3dc7ada4a3340e153ec828c | |
parent | 57b2d9d4a7155f516c3ffeec88f83867d0a99c4a (diff) |
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 <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>
-rw-r--r-- | qemu-io.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |