Received: from eggs.gnu.org ([2001:4830:134:3::10]:43441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9w7h-0000Fm-22 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 11:07:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9w7a-0004xI-EO for qemu-devel@nongnu.org; Mon, 06 Jun 2016 11:07:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9w7a-0004xE-87 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 11:07:18 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (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 D43592198 for ; Mon, 6 Jun 2016 15:07:17 +0000 (UTC) From: Markus Armbruster References: <1465214470-12515-1-git-send-email-pbonzini@redhat.com> <20160606120629.GC5581@redhat.com> <9f55fd2f-21d3-a1cb-7f71-8c91fc95767e@redhat.com> Date: Mon, 06 Jun 2016 17:07:15 +0200 In-Reply-To: <9f55fd2f-21d3-a1cb-7f71-8c91fc95767e@redhat.com> (Paolo Bonzini's message of "Mon, 6 Jun 2016 16:08:40 +0200") Message-ID: <87d1nujqzg.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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: Paolo Bonzini Cc: "Daniel P. Berrange" , qemu-devel@nongnu.org Paolo Bonzini writes: > 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? Would error_printf_unless_qmp() do? We already use it in vnc_display_password().