From patchwork Tue May 31 07:03:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hu, Robert" X-Patchwork-Id: 628011 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rJkxy0h4Vz9t3s for ; Tue, 31 May 2016 17:04:38 +1000 (AEST) Received: from localhost ([::1]:34674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7djA-0000ay-5v for incoming@patchwork.ozlabs.org; Tue, 31 May 2016 03:04:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7di0-0007vh-4C for qemu-devel@nongnu.org; Tue, 31 May 2016 03:03:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7dhu-0005Hp-TT for qemu-devel@nongnu.org; Tue, 31 May 2016 03:03:24 -0400 Received: from mga02.intel.com ([134.134.136.20]:32506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7dhu-0005Fr-N6 for qemu-devel@nongnu.org; Tue, 31 May 2016 03:03:18 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 31 May 2016 00:03:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,394,1459839600"; d="scan'208";a="965579274" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.13.216]) by orsmga001.jf.intel.com with ESMTP; 31 May 2016 00:03:17 -0700 From: Robert Ho To: qemu-devel@nongnu.org Date: Tue, 31 May 2016 15:03:10 +0800 Message-Id: <1464678190-9290-3-git-send-email-robert.hu@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1464678190-9290-1-git-send-email-robert.hu@intel.com> References: <1464678190-9290-1-git-send-email-robert.hu@intel.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.20 Subject: [Qemu-devel] [PATCH 2/2] Explicitly print out default vnc option in use X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, robert.hu@intel.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" If no display option defined in QEMU command line, and SDL is not available, then it by default uses '-vnc localhost:0,to=99,id=default'. This patch simply print out the default option parameters out, so that user is aware of that. Signed-off-by: Robert Ho --- vl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 18d1423..8617a68 100644 --- a/vl.c +++ b/vl.c @@ -4213,7 +4213,10 @@ int main(int argc, char **argv, char **envp) #elif defined(CONFIG_COCOA) display_type = DT_COCOA; #elif defined(CONFIG_VNC) - vnc_parse("localhost:0,to=99,id=default", &error_abort); + #define DEFAULT_VNC_DISPLAY_OPTION "localhost:0,to=99,id=default" + vnc_parse(DEFAULT_VNC_DISPLAY_OPTION, &error_abort); + printf("No display option defined, using '-vnc %s' by default \ +\n", DEFAULT_VNC_DISPLAY_OPTION); show_vnc_port = 1; #else display_type = DT_NONE;