Skip to contentSkip to conversation

ui: fix regression in printing VNC host/port on startup

PATCH In review Daniel P. Berrange 3 participants 3 messages Jun 8, 2016 – Jun 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui: fix regression in printing VNC host/port on startup

If VNC is chosen as the compile time default display backend, QEMU will print the host/port it listens on at startup. Previously this would look like

VNC server running on '::1:5900'

but in 04d2529da27db512dcbd5e99d0e26d333f16efcc the ':' was accidentally replaced with a ';'. This the ':' back.

---
 ui/vnc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/vnc.c +1 -1
index c862fdc..75ae2a7 100644
@@ -3225,7 +3225,7 @@ char *vnc_display_local_addr(const char *id)
         qapi_free_SocketAddress(addr);
         return NULL;
     }
-    ret = g_strdup_printf("%s;%s", addr->u.inet.data->host,
+    ret = g_strdup_printf("%s:%s", addr->u.inet.data->host,
                           addr->u.inet.data->port);
     qapi_free_SocketAddress(addr);
 
Signature · 1 line
2.5.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Daniel P. Berrange

If VNC is chosen as the compile time default display backend, QEMU will print the host/port it listens on at startup. Previously this would look like

VNC server running on '::1:5900'

Quoted 8 lines

but in 04d2529da27db512dcbd5e99d0e26d333f16efcc the ':' was accidentally replaced with a ';'. This the ':' back.

---
 ui/vnc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
ui/vnc.c +1 -1
index c862fdc..75ae2a7 100644
@@ -3225,7 +3225,7 @@ char *vnc_display_local_addr(const char *id)
         qapi_free_SocketAddress(addr);
         return NULL;
     }
-    ret = g_strdup_printf("%s;%s", addr->u.inet.data->host,
+    ret = g_strdup_printf("%s:%s", addr->u.inet.data->host,
                           addr->u.inet.data->port);
     qapi_free_SocketAddress(addr);
 
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#2 lore raw
In reply to Daniel P. Berrange
Quoted 8 lines · Daniel P. Berrange

If VNC is chosen as the compile time default display backend, QEMU will print the host/port it listens on at startup. Previously this would look like

VNC server running on '::1:5900'

but in 04d2529da27db512dcbd5e99d0e26d333f16efcc the ':' was accidentally replaced with a ';'. This the ':' back.

Added to ui queue.

thanks,
Gerd