aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-01-20 13:07:32 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-26 14:55:10 -0600
commitc34ed28b6b9915650f5f8a6353e773a4b34afce7 (patch)
treea2049d96dfd66a2d77af24c21c30bef0d3105b8e
parent3da2c8081478ee11c7f3aebcbf42680c975b0712 (diff)
monitor: convert do_memory_save() to QError
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 0595f0db95..7b7a46585a 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1316,7 +1316,7 @@ static void do_memory_save(Monitor *mon, const QDict *qdict, QObject **ret_data)
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) {