Received: from eggs.gnu.org ([2001:4830:134:3::10]:53650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9vD1-0007XR-Cd for qemu-devel@nongnu.org; Mon, 06 Jun 2016 10:08:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9vCx-0007at-92 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 10:08:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9vCx-0007ak-43 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 10:08:47 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB627C05B1DD for ; Mon, 6 Jun 2016 14:08:46 +0000 (UTC) References: <1465214470-12515-1-git-send-email-pbonzini@redhat.com> <20160606120629.GC5581@redhat.com> From: Paolo Bonzini Message-ID: <9f55fd2f-21d3-a1cb-7f71-8c91fc95767e@redhat.com> Date: Mon, 6 Jun 2016 16:08:40 +0200 MIME-Version: 1.0 In-Reply-To: <20160606120629.GC5581@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vnc: generalize "VNC server running on ..." message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, Markus Armbruster On 06/06/2016 14:06, Daniel P. Berrange wrote: >> > @@ -3838,6 +3834,10 @@ void vnc_display_open(const char *id, Error **errp) >> > } >> > } >> > >> > + if (show_vnc_port) { >> > + vnc_display_print_local_addr(vs); >> > + } >> > + >> > qapi_free_SocketAddress(saddr); >> > qapi_free_SocketAddress(wsaddr); >> > return; > By calling this from vnc_display_open, you'll cause it to > print to stdout, even when using QMP, because qmp_change_vnc_listen > calls vnc_display_open. Hmm, yes. Markus, what's the best thing to do? Some kind of monitor_printf? Thanks, Paolo