]> git.proxmox.com Git - mirror_qemu.git/blame - stubs/error-printf.c
numa: deprecate implict memory distribution between nodes
[mirror_qemu.git] / stubs / error-printf.c
CommitLineData
397d30e9 1#include "qemu/osdep.h"
397d30e9
PB
2#include "qemu/error-report.h"
3
679cb8e1 4int error_vprintf(const char *fmt, va_list ap)
397d30e9 5{
679cb8e1
MA
6 int ret;
7
977a7204
DB
8 if (g_test_initialized() && !g_test_subprocess() &&
9 getenv("QTEST_SILENT_ERRORS")) {
28017e01
PB
10 char *msg = g_strdup_vprintf(fmt, ap);
11 g_test_message("%s", msg);
679cb8e1 12 ret = strlen(msg);
28017e01 13 g_free(msg);
679cb8e1 14 return ret;
28017e01 15 }
679cb8e1 16 return vfprintf(stderr, fmt, ap);
397d30e9
PB
17}
18
679cb8e1 19int error_vprintf_unless_qmp(const char *fmt, va_list ap)
397d30e9 20{
679cb8e1 21 return error_vprintf(fmt, ap);
397d30e9 22}