From: Markus Armbruster Date: Fri, 19 Feb 2010 17:05:39 +0000 (+0100) Subject: error: New QERR_BUS_NOT_FOUND X-Git-Tag: v0.13.0-rc0~1079^2~16 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7bbd823701cf4447b5c23430f1ad78ce501793b4;p=qemu.git error: New QERR_BUS_NOT_FOUND --- diff --git a/qerror.c b/qerror.c index d8eb32998..75f7b5846 100644 --- a/qerror.c +++ b/qerror.c @@ -40,6 +40,10 @@ static const QType qerror_type = { * "running out of foo: %(foo)%%" */ static const QErrorStringTable qerror_table[] = { + { + .error_fmt = QERR_BUS_NOT_FOUND, + .desc = "Bus '%(bus)' not found", + }, { .error_fmt = QERR_COMMAND_NOT_FOUND, .desc = "The command %(name) has not been found", diff --git a/qerror.h b/qerror.h index a0730edd6..84928080f 100644 --- a/qerror.h +++ b/qerror.h @@ -42,6 +42,9 @@ QError *qobject_to_qerror(const QObject *obj); /* * QError class list */ +#define QERR_BUS_NOT_FOUND \ + "{ 'class': 'BusNotFound', 'data': { 'bus': %s } }" + #define QERR_COMMAND_NOT_FOUND \ "{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"