aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 7b7a46585a..614d2d691b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1343,7 +1343,7 @@ static void do_physical_memory_save(Monitor *mon, const QDict *qdict,
f = fopen(filename, "wb");
if (!f) {
- monitor_printf(mon, "could not open '%s'\n", filename);
+ qemu_error_new(QERR_OPEN_FILE_FAILED, filename);
return;
}
while (size != 0) {