diff --git a/monitor.c b/monitor.c index 072bea462f17d47393be1404077fee75dc09d051..ba60f975af9fa91e347ca772fd47d7a76344a801 100644 --- a/monitor.c +++ b/monitor.c @@ -1164,9 +1164,10 @@ static int do_change(Monitor *mon, const QDict *qdict, QObject **ret_data) return ret; } -static void do_screen_dump(Monitor *mon, const QDict *qdict) +static int do_screen_dump(Monitor *mon, const QDict *qdict, QObject **ret_data) { vga_hw_screen_dump(qdict_get_str(qdict, "filename")); + return 0; } static void do_logfile(Monitor *mon, const QDict *qdict) diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 62fa3465b3d4d5a944a88926fc11f94bbabfc815..5ea574856958a22feb45d6c332071856af44f891 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -199,7 +199,8 @@ ETEXI .args_type = "filename:F", .params = "filename", .help = "save screen into PPM image 'filename'", - .mhandler.cmd = do_screen_dump, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_screen_dump, }, STEXI