monitor: convert do_memory_save() to QError

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Markus Armbruster 2010-01-20 13:07:32 +01:00 committed by Anthony Liguori
parent 3da2c80814
commit c34ed28b6b
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ static void do_memory_save(Monitor *mon, const QDict *qdict, QObject **ret_data)
f = fopen(filename, "wb"); f = fopen(filename, "wb");
if (!f) { if (!f) {
monitor_printf(mon, "could not open '%s'\n", filename); qemu_error_new(QERR_OPEN_FILE_FAILED, filename);
return; return;
} }
while (size != 0) { while (size != 0) {