From: Eric Blake <eblake@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>, qemu-devel@nongnu.org
Cc: Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 3/4] qmp-shell: don't show version greeting if unavailable
Date: Thu, 4 May 2017 08:50:46 -0500 [thread overview]
Message-ID: <98514164-37f9-3ad0-a05e-10f9f5eaaf57@redhat.com> (raw)
In-Reply-To: <20170504125432.21653-4-marcandre.lureau@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
On 05/04/2017 07:54 AM, Marc-André Lureau wrote:
> qemu-ga doesn't have greeting.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> scripts/qmp/qmp-shell | 3 +++
> 1 file changed, 3 insertions(+)
>
Reviewed-by: Eric Blake <eblake@redhat.com>
> diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
> index 04b8fa3eae..db24c87cdd 100755
> --- a/scripts/qmp/qmp-shell
> +++ b/scripts/qmp/qmp-shell
> @@ -265,6 +265,9 @@ class QMPShell(qmp.QEMUMonitorProtocol):
>
> def show_banner(self, msg='Welcome to the QMP low-level shell!'):
> print msg
> + if not self._greeting:
> + print 'Connected'
> + return
> version = self._greeting['QMP']['version']['qemu']
> print 'Connected to QEMU %d.%d.%d\n' % (version['major'],version['minor'],version['micro'])
>
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2017-05-04 13:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 12:54 [Qemu-devel] [PATCH 0/4] qmp-shell: learn to connect to qemu-ga Marc-André Lureau
2017-05-04 12:54 ` [Qemu-devel] [PATCH 1/4] qmp-shell: add -N option to skip negotiate Marc-André Lureau
2017-05-04 13:34 ` Eric Blake
2017-05-04 12:54 ` [Qemu-devel] [PATCH 2/4] qmp-shell: ignore query-commands error Marc-André Lureau
2017-05-04 13:50 ` Eric Blake
2017-05-04 14:44 ` Markus Armbruster
2017-05-04 14:44 ` Marc-André Lureau
2017-05-04 12:54 ` [Qemu-devel] [PATCH 3/4] qmp-shell: don't show version greeting if unavailable Marc-André Lureau
2017-05-04 13:50 ` Eric Blake [this message]
2017-05-04 12:54 ` [Qemu-devel] [PATCH 4/4] qmp-shell: improve help Marc-André Lureau
2017-05-04 13:51 ` Eric Blake
2017-05-04 14:48 ` Markus Armbruster
2017-05-04 15:22 ` [Qemu-devel] [PATCH 0/4] qmp-shell: learn to connect to qemu-ga Markus Armbruster
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=98514164-37f9-3ad0-a05e-10f9f5eaaf57@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=marcandre.lureau@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).