diff options
| author | Igor Mitsyanko | 2013-03-10 14:58:05 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2013-03-13 10:27:47 +0100 |
| commit | e5545854dd1e2e3507b210ac0c1cbfca69ff0fcb (patch) | |
| tree | a1c8995d082fe0f8ac14e8c0e9dd978f4ad75631 | |
| parent | Revert "hmp: Disable chardev-add and chardev-remove" (diff) | |
| download | qemu-e5545854dd1e2e3507b210ac0c1cbfca69ff0fcb.tar.gz qemu-e5545854dd1e2e3507b210ac0c1cbfca69ff0fcb.tar.xz qemu-e5545854dd1e2e3507b210ac0c1cbfca69ff0fcb.zip | |
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 <i.mitsyanko@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| -rw-r--r-- | qemu-char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c index 7e13757af6..e6337971a5 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2656,7 +2656,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" : ""); |
