From 7581766b719afd63dcf922ddbf982291f596ed12 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Fri, 7 Jun 2013 14:36:01 -0400 Subject: dump: qmp_dump_guest_memory(): use error_setg_file_open() Signed-off-by: Luiz Capitulino Acked-by: Kevin Wolf --- dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dump.c') diff --git a/dump.c b/dump.c index 44a1339c8a..c812cfaf2d 100644 --- 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_setg_file_open(errp, errno, p); return; } } -- cgit v1.2.3