diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2018-05-29 14:48:19 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-06-12 09:33:52 +1000 |
commit | e20c63140a185c166e91d8c68a2aa6bb99e600c3 (patch) | |
tree | 05c07d03052c3caa65293ac720f47237c4bf46e6 /target/ppc | |
parent | 45fefe7c4d9bfc5a4a222d3d2c8244531e87130f (diff) |
hw/ppc/spapr_drc: Replace error_setg(&error_abort) by error_report() + abort()
Use error_report() + abort() instead of error_setg(&error_abort),
as suggested by the "qapi/error.h" documentation:
Please don't error_setg(&error_fatal, ...), use error_report() and
exit(), because that's more obvious.
Likewise, don't error_setg(&error_abort, ...), use assert().
Use abort() instead of the suggested assert() because the error message
already got displayed.
Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc')
0 files changed, 0 insertions, 0 deletions