commit | 7581766b719afd63dcf922ddbf982291f596ed12 | [log] [tgz] |
---|---|---|
author | Luiz Capitulino <lcapitulino@redhat.com> | Fri Jun 07 14:36:01 2013 -0400 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Mon Jun 17 11:01:14 2013 -0400 |
tree | 82bc8ba8aa95e50d01670fb973855e8ce45c8154 | |
parent | 618da851ec8059460be8e0670bc835d3c2003708 [diff] |
dump: qmp_dump_guest_memory(): use error_setg_file_open() Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Acked-by: Kevin Wolf <kwolf@redhat.com>
diff --git a/dump.c b/dump.c index 44a1339..c812cfa 100644 --- a/dump.c +++ b/dump.c
@@ -853,7 +853,7 @@ if (strstart(file, "file:", &p)) { fd = qemu_open(p, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR); if (fd < 0) { - error_set(errp, QERR_OPEN_FILE_FAILED, p); + error_setg_file_open(errp, errno, p); return; } }