summaryrefslogtreecommitdiff
path: root/target-sparc/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/cpu.c')
-rw-r--r--target-sparc/cpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-sparc/cpu.c b/target-sparc/cpu.c
index aa7626c1bf..a952097096 100644
--- a/target-sparc/cpu.c
+++ b/target-sparc/cpu.c
@@ -111,8 +111,7 @@ static int cpu_sparc_register(SPARCCPU *cpu, const char *cpu_model)
cc->parse_features(CPU(cpu), featurestr, &err);
g_free(s);
if (err) {
- error_report("%s", error_get_pretty(err));
- error_free(err);
+ error_report_err(err);
return -1;
}