monitor: convert do_physical_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:
parent
c34ed28b6b
commit
95fada8c2c
@ -1343,7 +1343,7 @@ static void do_physical_memory_save(Monitor *mon, const QDict *qdict,
|
|||||||
|
|
||||||
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user