Skip to content

Commit

Permalink
dump: qmp_dump_guest_memory(): use error_setg_file_open()
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Capitulino <[email protected]>
Acked-by: Kevin Wolf <[email protected]>
  • Loading branch information
Luiz Capitulino committed Jun 17, 2013
1 parent 618da85 commit 7581766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ void qmp_dump_guest_memory(bool paging, const char *file, bool has_begin,
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;
}
}
Expand Down

0 comments on commit 7581766

Please sign in to comment.