diff options
| author | Luiz Capitulino | 2013-06-07 20:36:01 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2013-06-17 17:01:14 +0200 |
| commit | 7581766b719afd63dcf922ddbf982291f596ed12 (patch) | |
| tree | 82bc8ba8aa95e50d01670fb973855e8ce45c8154 | |
| parent | cpus: use error_setg_file_open() (diff) | |
| download | qemu-7581766b719afd63dcf922ddbf982291f596ed12.tar.gz qemu-7581766b719afd63dcf922ddbf982291f596ed12.tar.xz qemu-7581766b719afd63dcf922ddbf982291f596ed12.zip | |
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>
| -rw-r--r-- | dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } |
