qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 3/4] console: call qemu_chr_reset() in text_console_


From: Amit Shah
Subject: [Qemu-devel] [PATCH 3/4] console: call qemu_chr_reset() in text_console_init
Date: Tue, 20 Oct 2009 12:33:01 +0530

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 <address@hidden>
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]