* [Qemu-devel] [PATCH] console: call qemu_chr_reset() in text_console_init
@ 2009-10-14 7:55 Amit Shah
0 siblings, 0 replies; only message in thread
From: Amit Shah @ 2009-10-14 7:55 UTC (permalink / raw)
To: qemu-devel; +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 <amit.shah@redhat.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-14 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 7:55 [Qemu-devel] [PATCH] console: call qemu_chr_reset() in text_console_init Amit Shah
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).