]> www.infradead.org Git - users/dwmw2/qemu.git/commit
replace error_setg(&error_fatal, ...) with error_report()
authorTudor Gheorghiu <tudor.reda@gmail.com>
Mon, 7 Oct 2024 22:27:56 +0000 (01:27 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 21 Oct 2024 19:40:47 +0000 (22:40 +0300)
commit5ae3ec63631a907ba474094df99594cd545590df
treef8c278bfd0205d204114768d0b160060fd9266a7
parentf8d3116fddcea844a086f879e6e934107f471b10
replace error_setg(&error_fatal, ...) with error_report()

According to include/qapi/error.h:
* Please don't error_setg(&error_fatal, ...), use error_report() and
* exit(), because that's more obvious.

Patch updates all instances of error_setg(&error_fatal, ...) with
error_report(...), adds the explicit exit(1) and removes redundant
return statements.

Signed-off-by: Tudor Gheorghiu <tudor.reda@gmail.com>
Suggested-by: Thomas Huth <thuth@redhat.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2587
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: also fold __func__ to previous line)
hw/arm/allwinner-a10.c
hw/arm/allwinner-h3.c
hw/arm/allwinner-r40.c
hw/arm/xlnx-versal-virt.c
hw/audio/soundhw.c
system/vl.c