summaryrefslogtreecommitdiffstats
path: root/hw/xen_backend.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-09-23 21:28:03 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-10-03 06:34:36 +0000
commite5924d8980e0bd027f2f12fa702ec1c555538230 (patch)
tree74d22ef9b1e233ae742b9e5873da6202c9ea3b30 /hw/xen_backend.h
parent4a2b39d3232fea40d3e396a683f27f5e378ae46e (diff)
downloadhqemu-e5924d8980e0bd027f2f12fa702ec1c555538230.zip
hqemu-e5924d8980e0bd027f2f12fa702ec1c555538230.tar.gz
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 <blauwirbel@gmail.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/xen_backend.h')
-rw-r--r--hw/xen_backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen_backend.h b/hw/xen_backend.h
index 292126d..1b428e3 100644
--- a/hw/xen_backend.h
+++ b/hw/xen_backend.h
@@ -84,7 +84,7 @@ int xen_be_bind_evtchn(struct XenDevice *xendev);
void xen_be_unbind_evtchn(struct XenDevice *xendev);
int xen_be_send_notify(struct XenDevice *xendev);
void xen_be_printf(struct XenDevice *xendev, int msg_level, const char *fmt, ...)
- __attribute__ ((format(printf, 3, 4)));
+ GCC_FMT_ATTR(3, 4);
/* actual backend drivers */
extern struct XenDevOps xen_console_ops; /* xen_console.c */
OpenPOWER on IntegriCloud