[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/9] qemu-io: Give more --version information
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 7/9] qemu-io: Give more --version information |
Date: |
Tue, 8 Aug 2017 17:29:39 +0200 |
From: Eric Blake <address@hidden>
Include the package version information (useful for detecting
builds from git or downstream backports), and the copyright notice.
Signed-off-by: Eric Blake <address@hidden>
Reviewed-by: Daniel P. Berrange <address@hidden>
Acked-by: Kevin Wolf <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
qemu-io.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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);
--
2.13.3
- [Qemu-devel] [PULL 0/9] Misc patches for 2017-08-08, Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 1/9] rcu: completely disable pthread_atfork callbacks as soon as possible, Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 5/9] target/i386: set rip_offset for some SSE4.1 instructions, Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 6/9] qemu-img: Sort sub-command names in --help, Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 3/9] kvm: workaround build break on gcc-7.1.1 / fedora26, Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 4/9] scsi: clarify sense codes for LUN0 emulation, Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 2/9] Revert "rcu: do not create thread in pthread_atfork callback", Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 7/9] qemu-io: Give more --version information,
Paolo Bonzini <=
- [Qemu-devel] [PULL 8/9] qga: Give more --version information, Paolo Bonzini, 2017/08/08
- [Qemu-devel] [PULL 9/9] maint: Include bug-reporting info in --help output, Paolo Bonzini, 2017/08/08
- Re: [Qemu-devel] [PULL 0/9] Misc patches for 2017-08-08, Peter Maydell, 2017/08/08