From: Igor Mitsyanko Date: Sun, 10 Mar 2013 13:58:05 +0000 (+0400) Subject: qemu-char.c: fix waiting for telnet connection message X-Git-Tag: v1.4.1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec9f828341cb5e9cc3ad0bdbbd6989884daf823a;p=thirdparty%2Fqemu.git qemu-char.c: fix waiting for telnet connection message 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 Signed-off-by: Gerd Hoffmann (cherry picked from commit e5545854dd1e2e3507b210ac0c1cbfca69ff0fcb) Signed-off-by: Michael Roth --- diff --git a/qemu-char.c b/qemu-char.c index e4b0f5304f5..3e152e16db9 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2482,7 +2482,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" : "");