]> Git Repo - qemu.git/blob - stubs/error-printf.c
.gitlab-ci.d/windows: Do not run the qtests in the msys2-32bit job
[qemu.git] / stubs / error-printf.c
1 #include "qemu/osdep.h"
2 #include "qemu/error-report.h"
3 #include "monitor/monitor.h"
4
5 int error_vprintf(const char *fmt, va_list ap)
6 {
7     int ret;
8
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;
16     }
17     return vfprintf(stderr, fmt, ap);
18 }
19
20 int error_vprintf_unless_qmp(const char *fmt, va_list ap)
21 {
22     return error_vprintf(fmt, ap);
23 }
This page took 0.023482 seconds and 4 git commands to generate.