diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-02-18 13:16:02 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2010-03-16 16:55:05 +0100 |
commit | 615a55a2533d26e34f49ee2f5e4d6ad9b1c11fd8 (patch) | |
tree | 593183a7a30cf3c5263951af410c75489de0aa3c /sysemu.h | |
parent | 10e60c35ee6b44ea9ad64d3e3638cf7dfcd658d5 (diff) | |
download | qemu-615a55a2533d26e34f49ee2f5e4d6ad9b1c11fd8.tar.gz qemu-615a55a2533d26e34f49ee2f5e4d6ad9b1c11fd8.tar.bz2 qemu-615a55a2533d26e34f49ee2f5e4d6ad9b1c11fd8.zip |
error: Simplify error sink setup
qemu_error_sink can either point to a monitor or a file. In practice,
it always points to the current monitor if we have one, else to
stderr. Simply route errors to the current monitor or else to stderr,
and remove qemu_error_sink along with the functions to control it.
Actually, the old code switches the sink slightly later, in
handle_user_command() and handle_qmp_command(), than it gets switched
now, implicitly, by setting the current monitor in monitor_read() and
monitor_control_read(). Likewise, it switches back slightly earlier
(same places). Doesn't make a difference, because there are no calls
of qemu_error() in between.
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -73,9 +73,6 @@ int qemu_savevm_state_complete(Monitor *mon, QEMUFile *f); void qemu_savevm_state_cancel(Monitor *mon, QEMUFile *f); int qemu_loadvm_state(QEMUFile *f); -void qemu_errors_to_file(FILE *fp); -void qemu_errors_to_mon(Monitor *mon); -void qemu_errors_to_previous(void); void qemu_error(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); void qemu_error_internal(const char *file, int linenr, const char *func, const char *fmt, ...) |