From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um5UL-0000DG-3o for qemu-devel@nongnu.org; Mon, 10 Jun 2013 13:02:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um5UJ-0002Y3-V0 for qemu-devel@nongnu.org; Mon, 10 Jun 2013 13:02:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um5UJ-0002Xi-NG for qemu-devel@nongnu.org; Mon, 10 Jun 2013 13:02:35 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5AH2ZOJ018939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Jun 2013 13:02:35 -0400 From: Luiz Capitulino Date: Mon, 10 Jun 2013 13:02:24 -0400 Message-Id: <1370883748-31439-6-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1370883748-31439-1-git-send-email-lcapitulino@redhat.com> References: <1370883748-31439-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 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: kwolf@redhat.com, armbru@redhat.com, stefanha@redhat.com Signed-off-by: Luiz Capitulino --- 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