Files
qemu/util
Daniel P. Berrangé a582a5784e monitor: move error_vprintf back to error-report.c
The current unit tests rely on monitor.o not being linked, such
that the monitor stubs get linked instead. Since error_vprintf
is in monitor.o this allows a stub error_vprintf impl to be used
that calls g_test_message.

This takes a different approach, with error_vprintf moving
back to error-report.c such that it is always linked into the
tests. The monitor_vprintf() stub is then changed to use
g_test_message if QTEST_SILENT_ERRORS is set, otherwise it will
return -1 and trigger error_vprintf to call vfprintf.

The end result is functionally equivalent for the purposes of
the unit tests.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-03-05 17:40:24 +00:00
..
2023-03-20 12:43:50 +01:00
2023-12-19 19:03:38 +01:00
2026-01-22 11:23:31 +00:00
2025-01-16 20:57:17 -08:00
2023-05-23 15:20:15 +08:00
2024-09-20 10:00:27 +03:00
2025-10-01 08:33:24 +02:00
2024-09-13 20:11:13 +02:00
2025-03-10 17:07:16 +08:00
2025-01-29 11:43:04 -03:00
2023-04-24 11:29:00 +02:00
2020-12-10 17:16:44 +01:00
2024-06-21 09:47:22 -03:00
2025-10-03 09:48:02 -04:00
2023-08-31 19:47:43 +02:00
2023-03-28 15:23:10 -07:00
2023-11-15 12:06:05 +03:00
2024-06-19 12:42:03 +02:00
2025-12-27 10:11:12 +01:00
2023-11-03 09:20:31 +01:00