qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: zhanghailiang <zhang.zhanghailiang@huawei.com>
To: qemu-trivial@nongnu.org
Cc: zhanghailiang <zhang.zhanghailiang@huawei.com>,
	peter.huangpeng@huawei.com, armbru@redhat.com,
	qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH RFC 5/5] savevm: Replace error_report() & error_free() with error_report_err()
Date: Sat, 28 Feb 2015 17:05:27 +0800	[thread overview]
Message-ID: <1425114327-12136-6-git-send-email-zhang.zhanghailiang@huawei.com> (raw)
In-Reply-To: <1425114327-12136-1-git-send-email-zhang.zhanghailiang@huawei.com>

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
 savevm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/savevm.c b/savevm.c
index ce2b6a2..c4f8c39 100644
--- a/savevm.c
+++ b/savevm.c
@@ -932,8 +932,7 @@ int qemu_loadvm_state(QEMUFile *f)
     int ret;
 
     if (qemu_savevm_state_blocked(&local_err)) {
-        error_report("%s", error_get_pretty(local_err));
-        error_free(local_err);
+        error_report_err(local_err);
         return -EINVAL;
     }
 
-- 
1.7.12.4

  parent reply	other threads:[~2015-02-28  9:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-28  9:05 [Qemu-devel] [PATCH RFC 0/5] Another patchset try to clean up around qerror_report_err() zhanghailiang
2015-02-28  9:05 ` [Qemu-devel] [PATCH RFC 1/5] serial-pci: Avoid qerror_report_err() outside QMP command handlers zhanghailiang
2015-03-02 10:02   ` Markus Armbruster
2015-02-28  9:05 ` [Qemu-devel] [PATCH RFC 2/5] qdev: " zhanghailiang
2015-03-02 10:11   ` Markus Armbruster
2015-02-28  9:05 ` [Qemu-devel] [PATCH RFC 3/5] pci-hotplug-old: " zhanghailiang
2015-03-02 10:12   ` Markus Armbruster
2015-02-28  9:05 ` [Qemu-devel] [PATCH RFC 4/5] pci-assign: " zhanghailiang
2015-03-02 10:14   ` Markus Armbruster
2015-02-28  9:05 ` zhanghailiang [this message]
2015-03-02 10:26   ` [Qemu-devel] [PATCH RFC 5/5] savevm: Replace error_report() & error_free() with error_report_err() Markus Armbruster
2015-03-03  6:11     ` zhanghailiang
2015-03-03  9:19       ` Markus Armbruster
2015-03-03  9:34         ` zhanghailiang
2015-03-02 10:01 ` [Qemu-devel] [PATCH RFC 0/5] Another patchset try to clean up around qerror_report_err() Markus Armbruster
2015-03-03  6:08   ` zhanghailiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1425114327-12136-6-git-send-email-zhang.zhanghailiang@huawei.com \
    --to=zhang.zhanghailiang@huawei.com \
    --cc=armbru@redhat.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).