diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-02-19 19:53:36 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2010-03-16 17:45:34 +0100 |
commit | 2f6d2395139b882f97007f2d397d24a4df1d3fe4 (patch) | |
tree | 48fc6f0275b63d8c1bd34b2bb86ded4c41fc965a | |
parent | 9e16d3d3424309f95702b78339957eaee70f37a6 (diff) | |
download | qemu-2f6d2395139b882f97007f2d397d24a4df1d3fe4.tar.gz qemu-2f6d2395139b882f97007f2d397d24a4df1d3fe4.tar.bz2 qemu-2f6d2395139b882f97007f2d397d24a4df1d3fe4.zip |
error: New QERR_BUS_NO_HOTPLUG
-rw-r--r-- | qerror.c | 4 | ||||
-rw-r--r-- | qerror.h | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -49,6 +49,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Bus '%(bus)' not found", }, { + .error_fmt = QERR_BUS_NO_HOTPLUG, + .desc = "Bus '%(bus)' does not support hotplugging", + }, + { .error_fmt = QERR_COMMAND_NOT_FOUND, .desc = "The command %(name) has not been found", }, @@ -48,6 +48,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_BUS_NOT_FOUND \ "{ 'class': 'BusNotFound', 'data': { 'bus': %s } }" +#define QERR_BUS_NO_HOTPLUG \ + "{ 'class': 'BusNoHotplug', 'data': { 'bus': %s } }" + #define QERR_COMMAND_NOT_FOUND \ "{ 'class': 'CommandNotFound', 'data': { 'name': %s } }" |