From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mxyik-0004aE-Kb for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mxyig-0004Xa-Vb for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:30 -0400 Received: from [199.232.76.173] (port=40558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxyif-0004XR-V9 for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39210) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mxyif-0005kt-Ak for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:25 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9E7uNQj021244 for ; Wed, 14 Oct 2009 03:56:23 -0400 From: Amit Shah Date: Wed, 14 Oct 2009 13:25:47 +0530 Message-Id: <1255506947-22235-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH] console: call qemu_chr_reset() in text_console_init List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah text_console_init is called as the initialiser function for the 'vc' char backend. This function doesn't call qemu_chr_reset(), that emits the OPENED event. This fixes the help text and initial prompt display when the monitor is started in its default options -- as a vc backend to sdl or vnc. Signed-off-by: Amit Shah --- This patch fixes the bug that gets exposed when my other char patches are applied (which are presently in Anthony's queue). console.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/console.c b/console.c index 9bbef59..a4e0d64 100644 --- a/console.c +++ b/console.c @@ -1403,6 +1403,7 @@ CharDriverState *text_console_init(QemuOpts *opts) text_console_opts[n_text_consoles] = opts; n_text_consoles++; + qemu_chr_reset(chr); return chr; } -- 1.6.2.5