Received: from eggs.gnu.org ([208.118.235.92]:53426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEz21-0003p5-Rq for qemu-devel@nongnu.org; Mon, 11 Mar 2013 05:28:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEz20-0005E6-Dg for qemu-devel@nongnu.org; Mon, 11 Mar 2013 05:28:33 -0400 From: Markus Armbruster References: <1362923885-2656-1-git-send-email-i.mitsyanko@gmail.com> Date: Mon, 11 Mar 2013 10:28:29 +0100 In-Reply-To: <1362923885-2656-1-git-send-email-i.mitsyanko@gmail.com> (Igor Mitsyanko's message of "Sun, 10 Mar 2013 17:58:05 +0400") Message-ID: <8738w2thdu.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] qemu-char.c: fix waiting for telnet connection message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mitsyanko Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, Gerd Hoffmann Igor Mitsyanko writes: > Current colon position in "waiting for telnet connection" message template > produces messages like: > QEMU waiting for connection on: telnet::127.0.0.16666,server > > After moving a colon to the right, we will get a correct messages like: > QEMU waiting for connection on: telnet:127.0.0.1:6666,server > > Signed-off-by: Igor Mitsyanko > --- > qemu-char.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/qemu-char.c b/qemu-char.c > index 36295b1..789ee35 100644 > --- a/qemu-char.c > +++ b/qemu-char.c > @@ -2476,7 +2476,7 @@ static CharDriverState *qemu_chr_open_socket_fd(int fd, bool do_nodelay, > s->do_nodelay = do_nodelay; > getnameinfo((struct sockaddr *) &ss, ss_len, host, sizeof(host), > serv, sizeof(serv), NI_NUMERICHOST | NI_NUMERICSERV); > - snprintf(chr->filename, 256, "%s:%s:%s%s%s%s", > + snprintf(chr->filename, 256, "%s:%s%s%s:%s%s", > is_telnet ? "telnet" : "tcp", > left, host, right, serv, > is_listen ? ",server" : ""); Broken in commit f6bd5d6e. Nice to have that information in the commit message, but not worth a respin. Reviewed-by: Markus Armbruster