qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 8/9] qga: Give more --version information
Date: Tue,  8 Aug 2017 17:29:40 +0200	[thread overview]
Message-ID: <20170808152941.11247-9-pbonzini@redhat.com> (raw)
In-Reply-To: <20170808152941.11247-1-pbonzini@redhat.com>

From: Eric Blake <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>
Message-Id: <20170803163353.19558-4-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 qga/main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/qga/main.c b/qga/main.c
index 1b381d0bf3..b64c7ac2a2 100644
--- a/qga/main.c
+++ b/qga/main.c
@@ -29,6 +29,7 @@
 #include "qemu/help_option.h"
 #include "qemu/sockets.h"
 #include "qemu/systemd.h"
+#include "qemu-version.h"
 #ifdef _WIN32
 #include "qga/service-win32.h"
 #include "qga/vss-win32.h"
@@ -213,7 +214,8 @@ static void usage(const char *cmd)
 {
     printf(
 "Usage: %s [-m <method> -p <path>] [<options>]\n"
-"QEMU Guest Agent %s\n"
+"QEMU Guest Agent " QEMU_VERSION QEMU_PKGVERSION "\n"
+QEMU_COPYRIGHT "\n"
 "\n"
 "  -m, --method      transport method: one of unix-listen, virtio-serial,\n"
 "                    isa-serial, or vsock-listen (virtio-serial is the default)\n"
@@ -248,7 +250,7 @@ static void usage(const char *cmd)
 "  -h, --help        display this help and exit\n"
 "\n"
 "Report bugs to <mdroth@linux.vnet.ibm.com>\n"
-    , cmd, QEMU_VERSION, QGA_VIRTIO_PATH_DEFAULT, QGA_SERIAL_PATH_DEFAULT,
+    , cmd, QGA_VIRTIO_PATH_DEFAULT, QGA_SERIAL_PATH_DEFAULT,
     dfl_pathnames.pidfile,
 #ifdef CONFIG_FSFREEZE
     QGA_FSFREEZE_HOOK_DEFAULT,
-- 
2.13.3

  parent reply	other threads:[~2017-08-08 15:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 15:29 [Qemu-devel] [PULL 0/9] Misc patches for 2017-08-08 Paolo Bonzini
2017-08-08 15:29 ` [Qemu-devel] [PULL 1/9] rcu: completely disable pthread_atfork callbacks as soon as possible Paolo Bonzini
2017-08-08 15:29 ` [Qemu-devel] [PULL 2/9] Revert "rcu: do not create thread in pthread_atfork callback" Paolo Bonzini
2017-08-08 15:29 ` [Qemu-devel] [PULL 3/9] kvm: workaround build break on gcc-7.1.1 / fedora26 Paolo Bonzini
2017-08-08 15:29 ` [Qemu-devel] [PULL 4/9] scsi: clarify sense codes for LUN0 emulation Paolo Bonzini
2017-08-08 15:29 ` [Qemu-devel] [PULL 5/9] target/i386: set rip_offset for some SSE4.1 instructions Paolo Bonzini
2017-08-08 15:29 ` [Qemu-devel] [PULL 6/9] qemu-img: Sort sub-command names in --help Paolo Bonzini
2017-08-08 15:29 ` [Qemu-devel] [PULL 7/9] qemu-io: Give more --version information Paolo Bonzini
2017-08-08 15:29 ` Paolo Bonzini [this message]
2017-08-08 15:29 ` [Qemu-devel] [PULL 9/9] maint: Include bug-reporting info in --help output Paolo Bonzini
2017-08-08 16:41 ` [Qemu-devel] [PULL 0/9] Misc patches for 2017-08-08 Peter Maydell

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=20170808152941.11247-9-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --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).