mirror of https://gitee.com/openkylin/qemu.git
qga: 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> Message-Id: <20170803163353.19558-4-eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4face32a7a
commit
8f1c29af01
|
@ -29,6 +29,7 @@
|
||||||
#include "qemu/help_option.h"
|
#include "qemu/help_option.h"
|
||||||
#include "qemu/sockets.h"
|
#include "qemu/sockets.h"
|
||||||
#include "qemu/systemd.h"
|
#include "qemu/systemd.h"
|
||||||
|
#include "qemu-version.h"
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "qga/service-win32.h"
|
#include "qga/service-win32.h"
|
||||||
#include "qga/vss-win32.h"
|
#include "qga/vss-win32.h"
|
||||||
|
@ -213,7 +214,8 @@ static void usage(const char *cmd)
|
||||||
{
|
{
|
||||||
printf(
|
printf(
|
||||||
"Usage: %s [-m <method> -p <path>] [<options>]\n"
|
"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"
|
"\n"
|
||||||
" -m, --method transport method: one of unix-listen, virtio-serial,\n"
|
" -m, --method transport method: one of unix-listen, virtio-serial,\n"
|
||||||
" isa-serial, or vsock-listen (virtio-serial is the default)\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"
|
" -h, --help display this help and exit\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Report bugs to <mdroth@linux.vnet.ibm.com>\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,
|
dfl_pathnames.pidfile,
|
||||||
#ifdef CONFIG_FSFREEZE
|
#ifdef CONFIG_FSFREEZE
|
||||||
QGA_FSFREEZE_HOOK_DEFAULT,
|
QGA_FSFREEZE_HOOK_DEFAULT,
|
||||||
|
|
Loading…
Reference in New Issue