From: "Andreas Färber" <afaerber@suse.de>
To: Pavel Hrdina <phrdina@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] hmp: allow "bool" parameter to be optional
Date: Tue, 07 Aug 2012 15:52:50 +0200 [thread overview]
Message-ID: <50211DB2.4010300@suse.de> (raw)
In-Reply-To: <3c770151454e19e279d1ecae8bb4daaf456df9de.1344344200.git.phrdina@redhat.com>
Am 07.08.2012 15:03, schrieb Pavel Hrdina:
> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This is in need of a more detailed commit message: What exactly is this
fixing? Or is this a preparation for a particular new command?
Andreas
> ---
> monitor.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/monitor.c b/monitor.c
> index bbf30e6..2b3583c 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -3778,6 +3778,9 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon,
> val = 1;
> } else if (p - beg == 3 && !memcmp(beg, "off", p - beg)) {
> val = 0;
> + } else if (*typestr == '?') {
> + typestr++;
> + break;
> } else {
> monitor_printf(mon, "Expected 'on' or 'off'\n");
> goto fail;
>
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2012-08-07 13:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 13:03 [Qemu-devel] [PATCH 1/1] hmp: allow "bool" parameter to be optional Pavel Hrdina
2012-08-07 13:52 ` Andreas Färber [this message]
2012-08-07 13:58 ` Pavel Hrdina
2012-08-07 14:36 ` Markus Armbruster
2012-08-07 14:37 ` Pavel Hrdina
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=50211DB2.4010300@suse.de \
--to=afaerber@suse.de \
--cc=phrdina@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).