MAINTAINERS: add myself for leon3
[qemu/ar7.git] / stubs / error-printf.c
blob1f9d3b3714d830b121c9041c8c683248a29faf0c
1 #include "qemu/osdep.h"
2 #include "qemu-common.h"
3 #include "qemu/error-report.h"
5 int error_vprintf(const char *fmt, va_list ap)
7 int ret;
9 if (g_test_initialized() && !g_test_subprocess() &&
10 getenv("QTEST_SILENT_ERRORS")) {
11 char *msg = g_strdup_vprintf(fmt, ap);
12 g_test_message("%s", msg);
13 ret = strlen(msg);
14 g_free(msg);
15 return ret;
17 return vfprintf(stderr, fmt, ap);
20 int error_vprintf_unless_qmp(const char *fmt, va_list ap)
22 return error_vprintf(fmt, ap);