commit | 1befce9652a1b7cfca0191b3031fae3cbce26ef0 | [log] [tgz] |
---|---|---|
author | Luiz Capitulino <lcapitulino@redhat.com> | Fri Jun 07 14:36:58 2013 -0400 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Mon Jun 17 11:01:14 2013 -0400 |
tree | 48a4f12748a521ecb3109a0c85d0a6004751b4b3 | |
parent | 7581766b719afd63dcf922ddbf982291f596ed12 [diff] |
savevm: qmp_xen_save_devices_state(): use error_setg_file_open() Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Acked-by: Kevin Wolf <kwolf@redhat.com>
diff --git a/savevm.c b/savevm.c index 2ce439f..ff5ece6 100644 --- a/savevm.c +++ b/savevm.c
@@ -2410,7 +2410,7 @@ f = qemu_fopen(filename, "wb"); if (!f) { - error_set(errp, QERR_OPEN_FILE_FAILED, filename); + error_setg_file_open(errp, errno, filename); goto the_end; } ret = qemu_save_device_state(f);