Skip to content

Commit

Permalink
vnc: Remove default_mon usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
crobinso authored and Luiz Capitulino committed Apr 25, 2014
1 parent 02d1608 commit 027a79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/vnc.c
Expand Up @@ -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;
}

Expand All @@ -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");
}
}

Expand Down

0 comments on commit 027a79c

Please sign in to comment.