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 <m...@linux.vnet.ibm.com>
---
 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


Reply via email to