Revision ab5b027e qemu-error.h
b/qemu-error.h | ||
---|---|---|
16 | 16 |
void error_vprintf(const char *fmt, va_list ap); |
17 | 17 |
void error_printf(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); |
18 | 18 |
void error_report(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); |
19 |
void qemu_error_internal(const char *file, int linenr, const char *func,
|
|
20 |
const char *fmt, ...) |
|
21 |
__attribute__ ((format(printf, 4, 5)));
|
|
19 |
void qerror_report_internal(const char *file, int linenr, const char *func,
|
|
20 |
const char *fmt, ...)
|
|
21 |
__attribute__ ((format(printf, 4, 5))); |
|
22 | 22 |
|
23 |
#define qemu_error_new(fmt, ...) \
|
|
24 |
qemu_error_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__)
|
|
23 |
#define qerror_report(fmt, ...) \
|
|
24 |
qerror_report_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__)
|
|
25 | 25 |
|
26 | 26 |
#endif |
Also available in: Unified diff