diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-31 14:59:08 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-29 14:03:47 +0200 |
commit | 33df7bf3bf43ffa3001cadfe5d5faef2774522d0 (patch) | |
tree | 41eb4266d0c9c0552bb306a29879d72881cc4478 /vl.c | |
parent | cc96677469388bad3d66479379735cf75db069e3 (diff) | |
download | qemu-33df7bf3bf43ffa3001cadfe5d5faef2774522d0.zip qemu-33df7bf3bf43ffa3001cadfe5d5faef2774522d0.tar.gz qemu-33df7bf3bf43ffa3001cadfe5d5faef2774522d0.tar.bz2 |
vnc: generalize "VNC server running on ..." message
The message is useful whenever the user specifies "-vnc to=XX".
Move it to ui/vnc.c.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -2947,7 +2947,6 @@ int main(int argc, char **argv, char **envp) const char *qtest_log = NULL; const char *pid_file = NULL; const char *incoming = NULL; - int show_vnc_port = 0; bool defconfig = true; bool userconfig = true; bool nographic = false; @@ -4216,7 +4215,6 @@ int main(int argc, char **argv, char **envp) display_type = DT_COCOA; #elif defined(CONFIG_VNC) vnc_parse("localhost:0,to=99,id=default", &error_abort); - show_vnc_port = 1; #else display_type = DT_NONE; #endif @@ -4565,11 +4563,6 @@ int main(int argc, char **argv, char **envp) qemu_opts_foreach(qemu_find_opts("vnc"), vnc_init_func, NULL, NULL); #endif - if (show_vnc_port) { - char *ret = vnc_display_local_addr("default"); - printf("VNC server running on '%s'\n", ret); - g_free(ret); - } if (using_spice) { qemu_spice_display_init(); |