From: Eric Blake <eblake@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, pbonzini@redhat.com, berrange@redhat.com,
mreitz@redhat.com, qemu-block@nongnu.org,
peter.maydell@linaro.org
Subject: [Qemu-devel] [PATCH v3 2/4] qemu-io: Give more --version information
Date: Thu, 3 Aug 2017 11:33:51 -0500 [thread overview]
Message-ID: <20170803163353.19558-3-eblake@redhat.com> (raw)
In-Reply-To: <20170803163353.19558-1-eblake@redhat.com>
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>
---
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
next prev parent reply other threads:[~2017-08-03 16:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-03 16:33 [Qemu-devel] [PATCH v3 for-2.10 0/4] improved --version/--help tweaks Eric Blake
2017-08-03 16:33 ` [Qemu-devel] [PATCH v3 1/4] qemu-img: Sort sub-command names in --help Eric Blake
2017-08-03 16:33 ` Eric Blake [this message]
2017-08-03 16:33 ` [Qemu-devel] [PATCH v3 3/4] qga: Give more --version information Eric Blake
2017-08-03 16:33 ` [Qemu-devel] [PATCH v3 4/4] maint: Include bug-reporting info in --help output Eric Blake
2017-08-08 0:08 ` [Qemu-devel] [Qemu-block] [PATCH v3 for-2.10 0/4] improved --version/--help tweaks John Snow
2017-08-08 13:50 ` Eric Blake
2017-08-08 14:15 ` Jeff Cody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170803163353.19558-3-eblake@redhat.com \
--to=eblake@redhat.com \
--cc=berrange@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).