From 198675491fcec79f6ebb5d85ccaa52beecd56e43 Mon Sep 17 00:00:00 2001 From: zhanghailiang Date: Wed, 4 Mar 2015 18:25:54 +0800 Subject: error: Replace error_report() & error_free() with error_report_err() This is a continuation of the work started in commit 565f65d27: "error: Use error_report_err() where appropriate" Signed-off-by: zhanghailiang Reviewed-by: Eric Blake Reviewed-by: Markus Armbruster Signed-off-by: Michael Tokarev --- savevm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'savevm.c') diff --git a/savevm.c b/savevm.c index e7d97eea93..3b0e222cb3 100644 --- a/savevm.c +++ b/savevm.c @@ -941,8 +941,7 @@ int qemu_loadvm_state(QEMUFile *f) int file_error_after_eof = -1; 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; } -- cgit v1.2.3