diff mbox

[V2] Can't screendump without a console

Message ID 4ECAFA3D.90309@linux.vnet.ibm.com
State New
Headers show

Commit Message

Mars.cao Nov. 22, 2011, 1:26 a.m. UTC
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 <mars@linux.vnet.ibm.com>
---
  console.c |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)
diff mbox

Patch

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);
  }