« Previous | Next » 

Revision e5924d89

IDe5924d8980e0bd027f2f12fa702ec1c555538230

Added by Stefan Weil over 13 years ago

Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)

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 / printf by macro
GCC_FMT_ATTR which uses gnu_printf if supported.

It also removes an #ifdef GNUC (not needed any longer).

Cc: Blue Swirl <>
Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences