Re: [Qemu-devel] [PATCH 2/2] Use new gcc format attribute gnu_printf

2010-09-20 Thread Blue Swirl
On Mon, Sep 13, 2010 at 8:02 PM, Stefan Weil wrote: > Since version 4.4.x, gcc supports additional format attributes. >    __attribute__ ((format (gnu_printf, 1, 2))) > should be used instead of >    __attribute__ ((format (printf, 1, 2)) > because QEMU always uses standard format strings (even wi

[Qemu-devel] [PATCH 2/2] Use new gcc format attribute gnu_printf

2010-09-13 Thread Stefan Weil
Since version 4.4.x, gcc supports additional format attributes. __attribute__ ((format (gnu_printf, 1, 2))) should be used instead of __attribute__ ((format (printf, 1, 2)) because QEMU always uses standard format strings (even with mingw32). The patch replaces format attribute printf / __