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.
This commit is contained in:
Markus Armbruster 2010-02-17 16:24:10 +01:00
parent 4491e0f398
commit 03cd4655cb
4 changed files with 14 additions and 16 deletions

View file

@ -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();
}