qemu/include/qapi/qmp
Markus Armbruster 75158ebbe2 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)

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
2015-06-22 18:20:39 +02:00
..
dispatch.h qmp hmp: Consistently name Error * objects err, and not errp 2014-05-08 14:20:00 -04:00
json-lexer.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
json-parser.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
json-streamer.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qbool.h qobject: Use 'bool' for qbool 2015-06-22 17:40:00 +02:00
qdict.h qobject: Use 'bool' inside qdict 2015-06-22 17:40:00 +02:00
qerror.h qerror: Eliminate QERR_DEVICE_NOT_FOUND 2015-06-22 18:20:39 +02:00
qfloat.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qint.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qjson.h qjson.h: Remove spurious GCC_FMT_ATTR markup from qobject_from_json() declaration 2014-03-03 09:45:46 +04:00
qlist.h remove some double-includes 2013-05-18 16:35:12 +04:00
qobject.h qobject: Add a special null QObject 2015-05-11 08:59:07 -04:00
qstring.h qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00
types.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00