Revision e5924d89

b/audio/audio.h
87 87
} QEMUAudioTimeStamp;
88 88

  
89 89
void AUD_vlog (const char *cap, const char *fmt, va_list ap);
90
void AUD_log (const char *cap, const char *fmt, ...)
91
#ifdef __GNUC__
92
    __attribute__ ((__format__ (__printf__, 2, 3)))
93
#endif
94
    ;
90
void AUD_log (const char *cap, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
95 91

  
96 92
void AUD_help (void);
97 93
void AUD_register_card (const char *name, QEMUSoundCard *card);
b/bsd-user/qemu.h
139 139
abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1,
140 140
                            abi_long arg2, abi_long arg3, abi_long arg4,
141 141
                            abi_long arg5, abi_long arg6);
142
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
142
void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
143 143
extern THREAD CPUState *thread_env;
144 144
void cpu_loop(CPUState *env);
145 145
char *target_strerror(int err);
b/darwin-user/qemu.h
99 99
                 struct sigaction *oact);
100 100
int do_sigaltstack(const struct sigaltstack *ss, struct sigaltstack *oss);
101 101

  
102
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
102
void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
103 103
void qerror(const char *fmt, ...);
104 104

  
105 105
void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags);
b/hw/xen_backend.h
84 84
void xen_be_unbind_evtchn(struct XenDevice *xendev);
85 85
int xen_be_send_notify(struct XenDevice *xendev);
86 86
void xen_be_printf(struct XenDevice *xendev, int msg_level, const char *fmt, ...)
87
    __attribute__ ((format(printf, 3, 4)));
87
    GCC_FMT_ATTR(3, 4);
88 88

  
89 89
/* actual backend drivers */
90 90
extern struct XenDevOps xen_console_ops;      /* xen_console.c     */
b/linux-user/qemu.h
186 186
abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
187 187
                    abi_long arg2, abi_long arg3, abi_long arg4,
188 188
                    abi_long arg5, abi_long arg6);
189
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
189
void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
190 190
extern THREAD CPUState *thread_env;
191 191
void cpu_loop(CPUState *env);
192 192
char *target_strerror(int err);
b/monitor.h
50 50
int monitor_get_fd(Monitor *mon, const char *fdname);
51 51

  
52 52
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
53
void monitor_printf(Monitor *mon, const char *fmt, ...)
54
    __attribute__ ((__format__ (__printf__, 2, 3)));
53
void monitor_printf(Monitor *mon, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
55 54
void monitor_print_filename(Monitor *mon, const char *filename);
56 55
void monitor_flush(Monitor *mon);
57 56

  
b/qemu-common.h
196 196

  
197 197
/* Error handling.  */
198 198

  
199
void QEMU_NORETURN hw_error(const char *fmt, ...)
200
    __attribute__ ((__format__ (__printf__, 1, 2)));
199
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
201 200

  
202 201
/* IO callbacks.  */
203 202
typedef void IOReadHandler(void *opaque, const uint8_t *buf, int size);
b/qemu-error.h
31 31
void loc_set_file(const char *fname, int lno);
32 32

  
33 33
void error_vprintf(const char *fmt, va_list ap);
34
void error_printf(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
35
void error_printf_unless_qmp(const char *fmt, ...)
36
    __attribute__ ((format(printf, 1, 2)));
34
void error_printf(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
35
void error_printf_unless_qmp(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
37 36
void error_print_loc(void);
38 37
void error_set_progname(const char *argv0);
39
void error_report(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
38
void error_report(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
40 39

  
41 40
#endif
b/qerror.h
38 38
QString *qerror_human(const QError *qerror);
39 39
void qerror_print(QError *qerror);
40 40
void qerror_report_internal(const char *file, int linenr, const char *func,
41
                            const char *fmt, ...)
42
    __attribute__ ((format(printf, 4, 5)));
41
                            const char *fmt, ...) GCC_FMT_ATTR(4, 5);
43 42
#define qerror_report(fmt, ...) \
44 43
    qerror_report_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__)
45 44
QError *qobject_to_qerror(const QObject *obj);
b/qjson.h
19 19
#include "qstring.h"
20 20

  
21 21
QObject *qobject_from_json(const char *string);
22
QObject *qobject_from_jsonf(const char *string, ...)
23
    __attribute__((__format__ (__printf__, 1, 2)));
22
QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
24 23
QObject *qobject_from_jsonv(const char *string, va_list *ap);
25 24

  
26 25
QString *qobject_to_json(const QObject *obj);

Also available in: Unified diff