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