yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From 36268b43efcc3d639e973a4a47cb32d38e92bc93 Mon Sep 17 00:00:00 2001
218e99
From: Laszlo Ersek <lersek@redhat.com>
218e99
Date: Thu, 31 Oct 2013 16:29:27 +0100
218e99
Subject: [PATCH 08/29] cpus: use error_setg_file_open()
218e99
218e99
RH-Author: Laszlo Ersek <lersek@redhat.com>
218e99
Message-id: <1383236971-6067-5-git-send-email-lersek@redhat.com>
218e99
Patchwork-id: 55194
218e99
O-Subject: [RHEL-7 qemu-kvm PATCH 4/8] cpus: use error_setg_file_open()
218e99
Bugzilla: 907743
218e99
RH-Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
218e99
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
218e99
From: Luiz Capitulino <lcapitulino@redhat.com>
218e99
218e99
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
218e99
Acked-by: Kevin Wolf <kwolf@redhat.com>
218e99
(cherry picked from commit 618da851ec8059460be8e0670bc835d3c2003708)
218e99
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
218e99
---
218e99
 cpus.c | 4 ++--
218e99
 1 file changed, 2 insertions(+), 2 deletions(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 cpus.c |    4 ++--
218e99
 1 files changed, 2 insertions(+), 2 deletions(-)
218e99
218e99
diff --git a/cpus.c b/cpus.c
218e99
index 3b7b380..caccf5a 100644
218e99
--- a/cpus.c
218e99
+++ b/cpus.c
218e99
@@ -1316,7 +1316,7 @@ void qmp_memsave(int64_t addr, int64_t size, const char *filename,
218e99
 
218e99
     f = fopen(filename, "wb");
218e99
     if (!f) {
218e99
-        error_set(errp, QERR_OPEN_FILE_FAILED, filename);
218e99
+        error_setg_file_open(errp, errno, filename);
218e99
         return;
218e99
     }
218e99
 
218e99
@@ -1346,7 +1346,7 @@ void qmp_pmemsave(int64_t addr, int64_t size, const char *filename,
218e99
 
218e99
     f = fopen(filename, "wb");
218e99
     if (!f) {
218e99
-        error_set(errp, QERR_OPEN_FILE_FAILED, filename);
218e99
+        error_setg_file_open(errp, errno, filename);
218e99
         return;
218e99
     }
218e99
 
218e99
-- 
218e99
1.7.1
218e99