From: Avi Kivity <avi@qumranet.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/2] fix screendump with multiple consoles
Date: Thu, 10 Jul 2008 16:04:34 +0300 [thread overview]
Message-ID: <1215695074-8939-3-git-send-email-avi@qumranet.com> (raw)
In-Reply-To: <1215695074-8939-1-git-send-email-avi@qumranet.com>
pretend to be the active console while a screendump takes place.
Signed-off-by: Avi Kivity <avi@qumranet.com>
---
console.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/qemu/console.c b/qemu/console.c
index a1bc769..061135f 100644
--- a/console.c
+++ b/console.c
@@ -167,10 +167,15 @@ void vga_hw_invalidate(void)
void vga_hw_screen_dump(const char *filename)
{
+ TextConsole *previous_active_console;
+
+ previous_active_console = active_console;
+ active_console = consoles[0];
/* There is currently no was of specifying which screen we want to dump,
so always dump the dirst one. */
if (consoles[0]->hw_screen_dump)
consoles[0]->hw_screen_dump(consoles[0]->hw, filename);
+ active_console = previous_active_console;
}
void vga_hw_text_update(console_ch_t *chardata)
--
1.5.6.1
next prev parent reply other threads:[~2008-07-10 13:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-10 13:04 [Qemu-devel] [PATCH 0/2] Fix the monitor 'screendump' command Avi Kivity
2008-07-10 13:04 ` [Qemu-devel] [PATCH 1/2] fix vga screendump Avi Kivity
2008-07-10 13:04 ` Avi Kivity [this message]
2008-07-10 13:20 ` [Qemu-devel] Re: [PATCH 0/2] Fix the monitor 'screendump' command Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1215695074-8939-3-git-send-email-avi@qumranet.com \
--to=avi@qumranet.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).