diff options
author | Philippe Mathieu-Daudé | 2018-05-29 19:48:19 +0200 |
---|---|---|
committer | David Gibson | 2018-06-12 01:33:52 +0200 |
commit | e20c63140a185c166e91d8c68a2aa6bb99e600c3 (patch) | |
tree | 05c07d03052c3caa65293ac720f47237c4bf46e6 /target | |
parent | uninorth: remove token register from uninorth device (diff) | |
download | qemu-e20c63140a185c166e91d8c68a2aa6bb99e600c3.tar.gz qemu-e20c63140a185c166e91d8c68a2aa6bb99e600c3.tar.xz qemu-e20c63140a185c166e91d8c68a2aa6bb99e600c3.zip |
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')
0 files changed, 0 insertions, 0 deletions