qemu-e2k/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
json-parser.h
json-streamer.h
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
qint.h
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
qobject.h qobject: Add a special null QObject 2015-05-11 08:59:07 -04:00
qstring.h
types.h