Received: from eggs.gnu.org ([2001:4830:134:3::10]:47698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uobqf-00053D-CP for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:00:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uobqa-000232-IN for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:00:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uobqa-00022x-AI for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:00:00 -0400 From: Luiz Capitulino Date: Mon, 17 Jun 2013 11:57:07 -0400 Message-Id: <1371484631-29510-6-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 5/9] cpus: 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 --- cpus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index c232265..c8bc8ad 100644 --- 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_setg_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_setg_file_open(errp, errno, filename); return; } -- 1.8.1.4