From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48695 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz6to-0007Ry-Gq for qemu-devel@nongnu.org; Mon, 14 Mar 2011 08:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz6tm-0004Lk-1b for qemu-devel@nongnu.org; Mon, 14 Mar 2011 08:29:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz6tl-0004Lb-Nu for qemu-devel@nongnu.org; Mon, 14 Mar 2011 08:29:22 -0400 From: Jes.Sorensen@redhat.com Date: Mon, 14 Mar 2011 13:28:45 +0100 Message-Id: <1300105726-25937-5-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: <1300105726-25937-1-git-send-email-Jes.Sorensen@redhat.com> References: <1300105726-25937-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 4/5] error message if user specifies curses on cmd line when curses is disabled List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, peter.maydell@linaro.org From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-options.hx | 2 -- vl.c | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 960762a..55f0872 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -637,11 +637,9 @@ the console. Therefore, you can still use QEMU to debug a Linux kernel with a serial console. ETEXI -#ifdef CONFIG_CURSES DEF("curses", 0, QEMU_OPTION_curses, "-curses use a curses/ncurses interface instead of SDL\n", QEMU_ARCH_ALL) -#endif STEXI @item -curses @findex curses diff --git a/vl.c b/vl.c index ab78e4c..f256f86 100644 --- a/vl.c +++ b/vl.c @@ -2191,11 +2191,14 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_nographic: display_type = DT_NOGRAPHIC; break; -#ifdef CONFIG_CURSES case QEMU_OPTION_curses: +#ifdef CONFIG_CURSES display_type = DT_CURSES; - break; +#else + fprintf(stderr, "Curses support is disabled\n"); + exit(1); #endif + break; case QEMU_OPTION_portrait: graphic_rotate = 1; break; -- 1.7.4