diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-21 19:42:21 -0400 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-04-25 09:19:58 -0400 |
commit | 027a79c373954920d5e9a1d0bafe1f315a2cd624 (patch) | |
tree | 559aedb853da41854c4e2172445166fd99410cce /ui | |
parent | 02d16089802234f4883a4792300889d2823cbb77 (diff) | |
download | qemu-027a79c373954920d5e9a1d0bafe1f315a2cd624.zip qemu-027a79c373954920d5e9a1d0bafe1f315a2cd624.tar.gz qemu-027a79c373954920d5e9a1d0bafe1f315a2cd624.tar.bz2 |
vnc: Remove default_mon usage
These errors don't seem user initiated, so forcibly printing to the
monitor doesn't seem right. Just use error_report.
Cc: Anthony Liguori <aliguori@amazon.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -996,7 +996,7 @@ static void audio_add(VncState *vs) struct audio_capture_ops ops; if (vs->audio_cap) { - monitor_printf(default_mon, "audio already running\n"); + error_report("audio already running"); return; } @@ -1006,7 +1006,7 @@ static void audio_add(VncState *vs) vs->audio_cap = AUD_add_capture(&vs->as, &ops, vs); if (!vs->audio_cap) { - monitor_printf(default_mon, "Failed to add audio capture\n"); + error_report("Failed to add audio capture"); } } |