diff options
author | Paolo Bonzini | 2016-10-24 18:31:02 +0200 |
---|---|---|
committer | Paolo Bonzini | 2016-11-01 16:06:57 +0100 |
commit | 397d30e9401d2da96dbdf0ce49805d6d4bb68833 (patch) | |
tree | ddf7d8155ff00678ab56f7b00aa33e136a649d64 /include/qemu/error-report.h | |
parent | nbd: Use CoQueue for free_sema instead of CoMutex (diff) | |
download | qemu-397d30e9401d2da96dbdf0ce49805d6d4bb68833.tar.gz qemu-397d30e9401d2da96dbdf0ce49805d6d4bb68833.tar.xz qemu-397d30e9401d2da96dbdf0ce49805d6d4bb68833.zip |
qemu-error: remove dependency of stubs on monitor
Leave the implementation of error_vprintf and error_vprintf_unless_qmp
(the latter now trivially wrapped by error_printf_unless_qmp) to
libqemustub.a and monitor.c. This has two advantages: it lets us
remove the monitor_printf and monitor_vprintf stubs, and it lets
tests provide a different implementation of the functions that uses
g_test_message.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1477326663-67817-2-git-send-email-pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/error-report.h')
-rw-r--r-- | include/qemu/error-report.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/error-report.h b/include/qemu/error-report.h index 499ec8b12a..3001865896 100644 --- a/include/qemu/error-report.h +++ b/include/qemu/error-report.h @@ -32,6 +32,7 @@ void loc_set_file(const char *fname, int lno); void error_vprintf(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0); void error_printf(const char *fmt, ...) GCC_FMT_ATTR(1, 2); +void error_vprintf_unless_qmp(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0); void error_printf_unless_qmp(const char *fmt, ...) GCC_FMT_ATTR(1, 2); void error_set_progname(const char *argv0); void error_vreport(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0); |