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 --- hw/arm/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/arm/virt.c') diff --git a/hw/arm/virt.c b/hw/arm/virt.c index b2eaea8..b652b07 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -771,7 +771,7 @@ static void machvirt_init(MachineState *machine) cc->parse_features(CPU(cpuobj), cpuopts, &err); g_free(cpuopts); if (err) { - error_report("%s", error_get_pretty(err)); + error_report_err(err); exit(1); } -- cgit v1.1