aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/cpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 70fd6db72f..14c6c4abaf 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -2158,8 +2158,7 @@ CPUX86State *cpu_x86_init_user(const char *cpu_model)
return &cpu->env;
error:
- error_report("%s", error_get_pretty(error));
- error_free(error);
+ error_report_err(error);
if (cpu != NULL) {
object_unref(OBJECT(cpu));
}