218e99
From 5617925ceaeae6855991e5397e015e3230548605 Mon Sep 17 00:00:00 2001
218e99
From: Gerd Hoffmann <kraxel@redhat.com>
218e99
Date: Mon, 14 Oct 2013 13:35:15 +0200
218e99
Subject: [PATCH 08/18] qemu-char: print notification to stderr
218e99
218e99
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
218e99
Message-id: <1381757723-23134-8-git-send-email-kraxel@redhat.com>
218e99
Patchwork-id: 54851
218e99
O-Subject: [RHEL-7 qemu-kvm PATCH 07/15] qemu-char: print notification to stderr
218e99
Bugzilla: 922010
218e99
RH-Acked-by: Hans de Goede <hdegoede@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
218e99
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
218e99
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
218e99
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
218e99
(cherry picked from commit fdca2124adc293f84f2b7aaf0df43faa6b6bf420)
218e99
---
218e99
 qemu-char.c | 4 ++--
218e99
 1 file changed, 2 insertions(+), 2 deletions(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 qemu-char.c |    4 ++--
218e99
 1 files changed, 2 insertions(+), 2 deletions(-)
218e99
218e99
diff --git a/qemu-char.c b/qemu-char.c
218e99
index f783a87..62fafb0 100644
218e99
--- a/qemu-char.c
218e99
+++ b/qemu-char.c
218e99
@@ -2686,8 +2686,8 @@ static CharDriverState *qemu_chr_open_socket_fd(int fd, bool do_nodelay,
218e99
     }
218e99
 
218e99
     if (is_listen && is_waitconnect) {
218e99
-        printf("QEMU waiting for connection on: %s\n",
218e99
-               chr->filename);
218e99
+        fprintf(stderr, "QEMU waiting for connection on: %s\n",
218e99
+                chr->filename);
218e99
         tcp_chr_accept(s->listen_chan, G_IO_IN, chr);
218e99
         qemu_set_nonblock(s->listen_fd);
218e99
     }
218e99
-- 
218e99
1.7.1
218e99