Received: from eggs.gnu.org ([2001:4830:134:3::10]:38491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dT07D-00028T-3a for qemu-devel@nongnu.org; Thu, 06 Jul 2017 02:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dT079-0007mb-Ti for qemu-devel@nongnu.org; Thu, 06 Jul 2017 02:18:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37436) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dT079-0007mP-N7 for qemu-devel@nongnu.org; Thu, 06 Jul 2017 02:18:11 -0400 From: Markus Armbruster References: <4c63c416af7bffe388d399132a006355366a3cfb.1499276048.git.alistair.francis@xilinx.com> <1d8284d3-0694-a207-8fe7-f58c0e223988@redhat.com> Date: Thu, 06 Jul 2017 08:18:08 +0200 In-Reply-To: <1d8284d3-0694-a207-8fe7-f58c0e223988@redhat.com> (Thomas Huth's message of "Thu, 6 Jul 2017 04:46:03 +0200") Message-ID: <87mv8iay1r.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [RFC v3 3/3] char-socket: Report TCP socket waiting as information List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: Alistair Francis , qemu-devel@nongnu.org, alistair23@gmail.com, philippe@mathieu-daude.net Thomas Huth writes: > On 05.07.2017 19:36, Alistair Francis wrote: >> When QEMU is waiting for a TCP socket connection it reports that message as >> an error. This isn't an error it is just information so let's change the >> report to use info_report() instead. >> >> Signed-off-by: Alistair Francis >> --- >> >> chardev/char-socket.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/chardev/char-socket.c b/chardev/char-socket.c >> index ccc499cfa1..a050a686ea 100644 >> --- a/chardev/char-socket.c >> +++ b/chardev/char-socket.c >> @@ -765,8 +765,8 @@ 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", >> - chr->filename); >> + info_report("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); >> qio_channel_set_blocking(QIO_CHANNEL(s->listen_ioc), false, NULL); >> > > Reviewed-by: Thomas Huth > > And in case you also want to add some warn_reports, I suggest to do a > > grep -r "error_report.*[Ww]arning:" * > > in the sources - there seem to be quite a lot of error_reports that are > rather a warning instead. Replace "in case you also want to" by "please do" --- I dislike adding infrastructure without users, and I dislike adding new ways to do things without getting rid of the old ways even more.