summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hw/rtl8139.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index cbf667a301..515652f270 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -88,8 +88,7 @@
 #  define DPRINTF(fmt, ...) \
     do { fprintf(stderr, "RTL8139: " fmt, ## __VA_ARGS__); } while (0)
 #else
-static inline __attribute__ ((format (printf, 1, 2)))
-    int DPRINTF(const char *fmt, ...)
+static inline GCC_FMT_ATTR(1, 2) int DPRINTF(const char *fmt, ...)
 {
     return 0;
 }