Re: [Qemu-devel] [PATCH 2/9] qtest: Document calling conventions

2017-07-25 Thread Stefan Hajnoczi
On Fri, Jul 21, 2017 at 03:53:19PM +0200, Markus Armbruster wrote: > From: Eric Blake > > We have two flavors of vararg usage in qtest; make it clear that > qmp() has different semantics than hmp(), and let the compiler > enforce that hmp() is used correctly. However, qmp() (and friends) > only a

Re: [Qemu-devel] [PATCH 2/9] qtest: Document calling conventions

2017-07-21 Thread Markus Armbruster
Eric Blake writes: > On 07/21/2017 08:53 AM, Markus Armbruster wrote: >> From: Eric Blake >> >> We have two flavors of vararg usage in qtest; make it clear that >> qmp() has different semantics than hmp(), and let the compiler >> enforce that hmp() is used correctly. However, qmp() (and friends

Re: [Qemu-devel] [PATCH 2/9] qtest: Document calling conventions

2017-07-21 Thread Eric Blake
On 07/21/2017 08:53 AM, Markus Armbruster wrote: > From: Eric Blake > > We have two flavors of vararg usage in qtest; make it clear that > qmp() has different semantics than hmp(), and let the compiler > enforce that hmp() is used correctly. However, qmp() (and friends) > only accept a subset of

[Qemu-devel] [PATCH 2/9] qtest: Document calling conventions

2017-07-21 Thread Markus Armbruster
From: Eric Blake We have two flavors of vararg usage in qtest; make it clear that qmp() has different semantics than hmp(), and let the compiler enforce that hmp() is used correctly. However, qmp() (and friends) only accept a subset of printf flags look-alikes (namely, those that our JSON parser