aboutsummaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-17 16:24:10 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 16:55:05 +0100
commit03cd4655cbbc304f355deffd3413f7e3cbbcbe5e (patch)
treeeaf8460c1e6c16ad44341768c392328ba7d9486b /monitor.c
parent4491e0f3984c81ebe12027de2f3d185953f09bde (diff)
savevm: Fix -loadvm to report errors to stderr, not the monitor
A monitor may not even exist. Change load_vmstate() to use qemu_error() instead of monitor_printf(). Parameter mon is now unused, remove it.
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 672ae474b..ec13ca47a 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2533,7 +2533,7 @@ static void do_loadvm(Monitor *mon, const QDict *qdict)
vm_stop(0);
- if (load_vmstate(mon, name) >= 0 && saved_vm_running)
+ if (load_vmstate(name) >= 0 && saved_vm_running)
vm_start();
}