From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uobqg-00055s-Bt for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:00:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uobqb-00024a-EJ for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:00:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uobqb-000237-59 for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:00:01 -0400 From: Luiz Capitulino Date: Mon, 17 Jun 2013 11:57:08 -0400 Message-Id: <1371484631-29510-7-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1371484631-29510-1-git-send-email-lcapitulino@redhat.com> References: <1371484631-29510-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PULL 6/9] dump: qmp_dump_guest_memory(): use error_setg_file_open() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com Signed-off-by: Luiz Capitulino Acked-by: Kevin Wolf --- dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump.c b/dump.c index 44a1339..c812cfa 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; } } -- 1.8.1.4