[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH][V2] Can't screendump without a console
From: |
Cao,Bing Bu |
Subject: |
[Qemu-devel] [PATCH][V2] Can't screendump without a console |
Date: |
Tue, 22 Nov 2011 09:26:21 +0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111104 Red Hat/3.1.16-2.el6_1 Thunderbird/3.1.16 |
When usinge "-vga none -nographic" option.
There is no any text and graphic console created in this case.
screen dump not supported without console.
Signed-off-by: Cao,Bing Bu <address@hidden>
---
console.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/console.c b/console.c
index f6fe441..6071ef3 100644
--- a/console.c
+++ b/console.c
@@ -184,8 +184,10 @@ void vga_hw_screen_dump(const char *filename)
console_select(0);
if (consoles[0] && consoles[0]->hw_screen_dump) {
consoles[0]->hw_screen_dump(consoles[0]->hw, filename);
+ } else {
+ error_printf("no any console,could not screen dump \n");
+ return;
}
-
console_select(previous_active_console->index);
}
--
1.7.1