From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N08lE-0000FK-QB for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:04:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N08lA-0000Bq-C0 for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:04:00 -0400 Received: from [199.232.76.173] (port=52017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N08l9-0000Bg-Vy for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:03:56 -0400 Received: from mx20.gnu.org ([199.232.41.8]:11432) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N08l9-00068Z-62 for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:03:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N08l8-0003Zx-6x for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:03:54 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9K73r8q020970 for ; Tue, 20 Oct 2009 03:03:53 -0400 From: Amit Shah Date: Tue, 20 Oct 2009 12:33:01 +0530 Message-Id: <1256022182-15570-4-git-send-email-amit.shah@redhat.com> In-Reply-To: <1256022182-15570-3-git-send-email-amit.shah@redhat.com> References: <1256022182-15570-1-git-send-email-amit.shah@redhat.com> <1256022182-15570-2-git-send-email-amit.shah@redhat.com> <1256022182-15570-3-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 3/4] 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 --- 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