projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eef407
)
cpus: use error_setg_file_open()
author
Luiz Capitulino
<lcapitulino@redhat.com>
Fri, 7 Jun 2013 18:35:06 +0000
(14:35 -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>
cpus.c
patch
|
blob
|
history
diff --git
a/cpus.c
b/cpus.c
index c232265cd25245fae1983ed4e1c775709fc66908..c8bc8ad8b5fe07b07ea6a8a4f8213e7eab71ebed 100644
(file)
--- a/
cpus.c
+++ b/
cpus.c
@@
-1278,7
+1278,7
@@
void qmp_memsave(int64_t addr, int64_t size, const char *filename,
f = fopen(filename, "wb");
if (!f) {
- error_set
(errp, QERR_OPEN_FILE_FAILED
, filename);
+ error_set
g_file_open(errp, errno
, filename);
return;
}
@@
-1308,7
+1308,7
@@
void qmp_pmemsave(int64_t addr, int64_t size, const char *filename,
f = fopen(filename, "wb");
if (!f) {
- error_set
(errp, QERR_OPEN_FILE_FAILED
, filename);
+ error_set
g_file_open(errp, errno
, filename);
return;
}