From: Pavel Hrdina <phrdina@redhat.com>
To: qemu-devel@nongnu.org
Cc: Pavel Hrdina <phrdina@redhat.com>
Subject: [Qemu-devel] [PATCH 1/1] hmp: allow "bool" parameter to be optional
Date: Tue, 7 Aug 2012 15:03:49 +0200 [thread overview]
Message-ID: <3c770151454e19e279d1ecae8bb4daaf456df9de.1344344200.git.phrdina@redhat.com> (raw)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
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;
--
1.7.11.2
next reply other threads:[~2012-08-07 13:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 13:03 Pavel Hrdina [this message]
2012-08-07 13:52 ` [Qemu-devel] [PATCH 1/1] hmp: allow "bool" parameter to be optional Andreas Färber
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=3c770151454e19e279d1ecae8bb4daaf456df9de.1344344200.git.phrdina@redhat.com \
--to=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).