qdev: Clean up qdev_connect_gpio_out_named()
[qemu/armbru.git] / stubs / error-printf.c
bloba2f61521a16f79f1d75522d28a6967f46890d753
1 #include "qemu/osdep.h"
2 #include "qemu/error-report.h"
4 int error_vprintf(const char *fmt, va_list ap)
6 int ret;
8 if (g_test_initialized() && !g_test_subprocess() &&
9 getenv("QTEST_SILENT_ERRORS")) {
10 char *msg = g_strdup_vprintf(fmt, ap);
11 g_test_message("%s", msg);
12 ret = strlen(msg);
13 g_free(msg);
14 return ret;
16 return vfprintf(stderr, fmt, ap);
19 int error_vprintf_unless_qmp(const char *fmt, va_list ap)
21 return error_vprintf(fmt, ap);