* [Qemu-devel] [4901] Pretend to be the active console while a screendump takes place ( Avi Kivity).
@ 2008-07-19 13:04 Andrzej Zaborowski
0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-07-19 13:04 UTC (permalink / raw)
To: qemu-devel
Revision: 4901
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4901
Author: balrog
Date: 2008-07-19 13:04:26 +0000 (Sat, 19 Jul 2008)
Log Message:
-----------
Pretend to be the active console while a screendump takes place (Avi Kivity).
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
trunk/console.c
Modified: trunk/console.c
===================================================================
--- trunk/console.c 2008-07-19 10:46:13 UTC (rev 4900)
+++ trunk/console.c 2008-07-19 13:04:26 UTC (rev 4901)
@@ -167,10 +167,15 @@
void vga_hw_screen_dump(const char *filename)
{
- /* There is currently no was of specifying which screen we want to dump,
+ TextConsole *previous_active_console;
+
+ previous_active_console = active_console;
+ active_console = consoles[0];
+ /* There is currently no way 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-19 13:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19 13:04 [Qemu-devel] [4901] Pretend to be the active console while a screendump takes place ( Avi Kivity) Andrzej Zaborowski
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).