seabios: turn off CONFIG_ATA_DMA
[qemu/kevin.git] / stubs / error-printf.c
blob99c6406668664020b597413e61133bd1199d9fdf
1 #include "qemu/osdep.h"
2 #include "qemu-common.h"
3 #include "qemu/error-report.h"
5 void error_vprintf(const char *fmt, va_list ap)
7 if (g_test_initialized() && !g_test_subprocess() &&
8 getenv("QTEST_SILENT_ERRORS")) {
9 char *msg = g_strdup_vprintf(fmt, ap);
10 g_test_message("%s", msg);
11 g_free(msg);
12 } else {
13 vfprintf(stderr, fmt, ap);
17 void error_vprintf_unless_qmp(const char *fmt, va_list ap)
19 error_vprintf(fmt, ap);