Received: from eggs.gnu.org ([2001:4830:134:3::10]:47283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um5UN-0000FB-Tp for qemu-devel@nongnu.org; Mon, 10 Jun 2013 13:02:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um5UL-0002Z8-Ii for qemu-devel@nongnu.org; Mon, 10 Jun 2013 13:02:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um5UL-0002Yf-9E for qemu-devel@nongnu.org; Mon, 10 Jun 2013 13:02:37 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5AH2aXB022937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Jun 2013 13:02:36 -0400 From: Luiz Capitulino Date: Mon, 10 Jun 2013 13:02:26 -0400 Message-Id: <1370883748-31439-8-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 7/9] savevm: qmp_xen_save_devices_state(): 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 --- savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/savevm.c b/savevm.c index 2ce439f..ff5ece6 100644 --- a/savevm.c +++ b/savevm.c @@ -2410,7 +2410,7 @@ void qmp_xen_save_devices_state(const char *filename, Error **errp) f = qemu_fopen(filename, "wb"); if (!f) { - error_set(errp, QERR_OPEN_FILE_FAILED, filename); + error_setg_file_open(errp, errno, filename); goto the_end; } ret = qemu_save_device_state(f); -- 1.8.1.4