projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
618da85
)
dump: qmp_dump_guest_memory(): use error_setg_file_open()
author
Luiz Capitulino
<lcapitulino@redhat.com>
Fri, 7 Jun 2013 18:36:01 +0000
(14:36 -0400)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Mon, 17 Jun 2013 15:01:14 +0000
(11:01 -0400)
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
dump.c
patch
|
blob
|
history
diff --git
a/dump.c
b/dump.c
index 44a1339c8a6fdb9ade12a6e7b7df70b497d53bf5..c812cfaf2d14a64ee836fd7479f9b9ce513bc202 100644
(file)
--- a/
dump.c
+++ b/
dump.c
@@
-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_set
g_file_open(errp, errno
, p);
return;
}
}