Re: [Qemu-devel] [PATCH v2 2/4] qemu-io: Give more --version information

2017-08-03 Thread Kevin Wolf
Am 28.07.2017 um 18:47 hat Eric Blake geschrieben:
> Include the package version information (useful for detecting
> builds from git or downstream backports), and the copyright notice.
> 
> Signed-off-by: Eric Blake 

Acked-by: Kevin Wolf 



Re: [Qemu-devel] [PATCH v2 2/4] qemu-io: Give more --version information

2017-08-02 Thread Daniel P. Berrange
On Fri, Jul 28, 2017 at 11:47:06AM -0500, Eric Blake wrote:
> Include the package version information (useful for detecting
> builds from git or downstream backports), and the copyright notice.
> 
> Signed-off-by: Eric Blake 
> ---
>  qemu-io.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrange 


Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|



[Qemu-devel] [PATCH v2 2/4] qemu-io: Give more --version information

2017-07-28 Thread Eric Blake
Include the package version information (useful for detecting
builds from git or downstream backports), and the copyright notice.

Signed-off-by: Eric Blake 
---
 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