Re: [Qemu-devel] [PATCH 4/5] qtest: Avoid passing raw strings through hmp()

2017-07-20 Thread Markus Armbruster
Eric Blake writes: > The next patch will add __attribute__((__format__)) to hmp(), which > in turn causes gcc to warn about non-literal format strings. Rather > than risk an arbitrary string containing % being mis-handled, always > pass variable strings along with a %s format. More importantly

[Qemu-devel] [PATCH 4/5] qtest: Avoid passing raw strings through hmp()

2017-07-14 Thread Eric Blake
The next patch will add __attribute__((__format__)) to hmp(), which in turn causes gcc to warn about non-literal format strings. Rather than risk an arbitrary string containing % being mis-handled, always pass variable strings along with a %s format. Signed-off-by: Eric Blake --- tests/test-hmp