unicorn/qemu/qom
Markus Armbruster 349447b324
qerror: Eliminate QERR_DEVICE_NOT_FOUND
Error classes other than ERROR_CLASS_GENERIC_ERROR should not be used
in new code. Hiding them in QERR_ macros makes new uses hard to spot.
Fortunately, there's just one such macro left. Eliminate it with this
coccinelle semantic patch:

@@
expression EP, E;
@@
-error_set(EP, QERR_DEVICE_NOT_FOUND, E)
+error_set(EP, ERROR_CLASS_DEVICE_NOT_FOUND, "Device '%s' not found", E)

Backports commit 75158ebbe259f0bd8bf435e8f4827a43ec89c877 from qemu
2018-02-17 15:23:09 -05:00
..
container.c Automated leading tab to spaces conversion. 2017-01-21 12:28:22 +11:00
cpu.c cleanup after msvc port 2017-01-22 21:27:17 +08:00
Makefile.objs import 2015-08-21 15:04:50 +08:00
object.c qerror: Eliminate QERR_DEVICE_NOT_FOUND 2018-02-17 15:23:09 -05:00
qom-qobject.c handle some errors properly so avoid exit() during initialization. this fixes issue #237 2015-11-12 01:43:41 +08:00