From: Luiz Capitulino <lcapitulino@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Supriya Kannery <supriyak@linux.vnet.ibm.com>,
Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt
Date: Fri, 4 Nov 2011 15:20:13 -0200 [thread overview]
Message-ID: <20111104152013.011f670f@doriath> (raw)
In-Reply-To: <CAJSP0QV3roXH1dfs9e2WhfMXa_t2=YLPVxicBG8fbSCntHcNWg@mail.gmail.com>
On Fri, 4 Nov 2011 14:03:47 +0000
Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Thu, Nov 3, 2011 at 6:36 PM, Luiz Capitulino <lcapitulino@redhat.com> wrote:
> > +Here's the implementation of the 'hello-world' HMP command:
> > +
> > +void hmp_hello_world(Monitor *mon, const QDict *qdict)
> > +{
> > + Error *errp = NULL;
> > + const char *message = qdict_get_str(qdict, "message");
>
> Since message is optional this should be qdict_get_try_str().
Good catch. That was my first version (and I did get an abort() there),
but forgot to fix it in the doc.
Thanks.
prev parent reply other threads:[~2011-11-04 17:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-03 18:36 [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt Luiz Capitulino
2011-11-03 20:50 ` Alon Levy
2011-11-04 16:45 ` Luiz Capitulino
2011-11-03 21:25 ` Michael Roth
2011-11-04 17:18 ` Luiz Capitulino
2011-11-04 14:03 ` Stefan Hajnoczi
2011-11-04 17:20 ` Luiz Capitulino [this message]
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=20111104152013.011f670f@doriath \
--to=lcapitulino@redhat.com \
--cc=armbru@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=supriyak@linux.vnet.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.