qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/6] vnc: Remove default_mon usage


From: Cole Robinson
Subject: [Qemu-devel] [PATCH 2/6] vnc: Remove default_mon usage
Date: Tue, 11 Mar 2014 19:15:18 -0400

These errors don't seem user initiated, so forcibly printing to the
monitor doesn't seem right. Just print to stderr.

Cc: Anthony Liguori <address@hidden>
Cc: Gerd Hoffmann <address@hidden>
Signed-off-by: Cole Robinson <address@hidden>
---
 ui/vnc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/vnc.c b/ui/vnc.c
index 9c84b3e..3c9b6c7 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -992,7 +992,7 @@ static void audio_add(VncState *vs)
     struct audio_capture_ops ops;
 
     if (vs->audio_cap) {
-        monitor_printf(default_mon, "audio already running\n");
+        fprintf(stderr, "audio already running\n");
         return;
     }
 
@@ -1002,7 +1002,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");
+        fprintf(stderr, "Failed to add audio capture\n");
     }
 }
 
-- 
1.8.5.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]