提交 1befce96 编写于 作者: L Luiz Capitulino

savevm: qmp_xen_save_devices_state(): use error_setg_file_open()

Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
Acked-by: NKevin Wolf <kwolf@redhat.com>
上级 7581766b
......@@ -2410,7 +2410,7 @@ void qmp_xen_save_devices_state(const char *filename, Error **errp)
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册