qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1 1/1] char-socket: Don't report TCP socket waiting as an error
@ 2017-06-05 18:34 Alistair Francis
  2017-06-05 20:12 ` Philippe Mathieu-Daudé
  2017-06-06 11:58 ` Marc-André Lureau
  0 siblings, 2 replies; 15+ messages in thread
From: Alistair Francis @ 2017-06-05 18:34 UTC (permalink / raw)
  To: qemu-devel, pbonzini, marcandre.lureau; +Cc: alistair.francis, alistair23

When QEMU is waiting for a TCP socket connection it reports that message as
an error. This isn't an error though, so let's change the report to just
use qemu_log().

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
---

 chardev/char-socket.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chardev/char-socket.c b/chardev/char-socket.c
index ccc499cfa1..a9884fa85b 100644
--- a/chardev/char-socket.c
+++ b/chardev/char-socket.c
@@ -27,6 +27,7 @@
 #include "io/channel-tls.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
+#include "qemu/log.h"
 #include "qapi/clone-visitor.h"
 
 #include "chardev/char-io.h"
@@ -765,7 +766,7 @@ static int tcp_chr_wait_connected(Chardev *chr, Error **errp)
      * in TLS and telnet cases, only wait for an accepted socket */
     while (!s->ioc) {
         if (s->is_listen) {
-            error_report("QEMU waiting for connection on: %s",
+            qemu_log("QEMU waiting for connection on: %s",
                          chr->filename);
             qio_channel_set_blocking(QIO_CHANNEL(s->listen_ioc), true, NULL);
             tcp_chr_accept(QIO_CHANNEL(s->listen_ioc), G_IO_IN, chr);
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-06-27 18:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05 18:34 [Qemu-devel] [PATCH v1 1/1] char-socket: Don't report TCP socket waiting as an error Alistair Francis
2017-06-05 20:12 ` Philippe Mathieu-Daudé
2017-06-06 11:58 ` Marc-André Lureau
2017-06-06 13:37   ` Philippe Mathieu-Daudé
2017-06-06 16:30     ` Alistair Francis
2017-06-06 22:14       ` Paolo Bonzini
2017-06-06 23:55         ` Alistair Francis
2017-06-07  7:19         ` Markus Armbruster
2017-06-07 23:47           ` Alistair Francis
2017-06-08  6:03             ` Markus Armbruster
2017-06-08 16:53               ` Alistair Francis
2017-06-08 17:56                 ` Markus Armbruster
2017-06-08 19:57                   ` Alistair Francis
2017-06-09  5:16                     ` Markus Armbruster
2017-06-27 18:49                       ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).