diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-05-24 13:48:23 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-09-05 15:48:57 -0300 |
commit | ad39cf6d150e951e4c67c8120d495ae7e78054a6 (patch) | |
tree | 33a507b37ef91aa60230cbe3b0e6455178dbe649 /console.c | |
parent | d7098135d4baac8141b2e76f2daa8a7f61599c72 (diff) | |
download | qemu-ad39cf6d150e951e4c67c8120d495ae7e78054a6.zip qemu-ad39cf6d150e951e4c67c8120d495ae7e78054a6.tar.gz qemu-ad39cf6d150e951e4c67c8120d495ae7e78054a6.tar.bz2 |
qapi: convert screendump
Next commits will update devices to propagate errors.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -24,6 +24,7 @@ #include "qemu-common.h" #include "console.h" #include "qemu-timer.h" +#include "qmp-commands.h" //#define DEBUG_CONSOLE #define DEFAULT_BACKSCROLL 512 @@ -176,7 +177,7 @@ void vga_hw_invalidate(void) active_console->hw_invalidate(active_console->hw); } -void vga_hw_screen_dump(const char *filename) +void qmp_screendump(const char *filename, Error **errp) { TextConsole *previous_active_console; bool cswitch; @@ -190,9 +191,9 @@ 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, cswitch, NULL); + consoles[0]->hw_screen_dump(consoles[0]->hw, filename, cswitch, errp); } else { - error_report("screen dump not implemented"); + error_setg(errp, "device doesn't support screendump\n"); } if (cswitch) { |