unicorn/qemu/include/qapi
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
..
qmp qerror: Eliminate QERR_DEVICE_NOT_FOUND 2018-02-17 15:23:09 -05:00
dealloc-visitor.h import 2015-08-21 15:04:50 +08:00
error.h platform.h move #3 2017-01-21 00:13:21 +11:00
qmp-input-visitor.h import 2015-08-21 15:04:50 +08:00
qmp-output-visitor.h import 2015-08-21 15:04:50 +08:00
string-input-visitor.h import 2015-08-21 15:04:50 +08:00
visitor-impl.h import 2015-08-21 15:04:50 +08:00
visitor.h import 2015-08-21 15:04:50 +08:00