unicorn/qemu/include/qapi/qmp
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
..
qbool.h qobject: Use 'bool' for qbool 2018-02-17 15:23:09 -05:00
qdict.h qobject: Use 'bool' inside qdict 2018-02-17 15:23:09 -05:00
qerror.h qerror: Eliminate QERR_DEVICE_NOT_FOUND 2018-02-17 15:23:09 -05:00
qfloat.h platform.h move #3 2017-01-21 00:13:21 +11:00
qint.h platform.h move #3 2017-01-21 00:13:21 +11:00
qjson.h import 2015-08-21 15:04:50 +08:00
qlist.h import 2015-08-21 15:04:50 +08:00
qobject.h import 2015-08-21 15:04:50 +08:00
qstring.h platform.h move #3 2017-01-21 00:13:21 +11:00
types.h import 2015-08-21 15:04:50 +08:00