Skip to content

Commit

Permalink
error: Replace error_report() & error_free() with error_report_err()
Browse files Browse the repository at this point in the history
This is a continuation of the work started in commit 565f65d:
"error: Use error_report_err() where appropriate"

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
colo-ft authored and Michael Tokarev committed Mar 19, 2015
1 parent 6e05a12 commit 1986754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hw/arm/virt.c
Expand Up @@ -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);
}

Expand Down
3 changes: 1 addition & 2 deletions savevm.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1986754

Please sign in to comment.