From patchwork Thu Mar 4 15:57:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [42/50] error: New QERR_NO_BUS_FOR_DEVICE From: Markus Armbruster X-Patchwork-Id: 46941 Message-Id: <1267718231-13303-43-git-send-email-armbru@redhat.com> To: qemu-devel@nongnu.org Cc: Luiz Capitulino Date: Thu, 4 Mar 2010 16:57:03 +0100 Signed-off-by: Markus Armbruster --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 107161c..ece51f8 100644 --- a/qerror.c +++ b/qerror.c @@ -125,6 +125,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Parameter '%(name)' is missing", }, { + .error_fmt = QERR_NO_BUS_FOR_DEVICE, + .desc = "No '%(bus)' bus found for device '%(device)'", + }, + { .error_fmt = QERR_OPEN_FILE_FAILED, .desc = "Could not open '%(filename)'", }, diff --git a/qerror.h b/qerror.h index 173b9f8..b46d4df 100644 --- a/qerror.h +++ b/qerror.h @@ -105,6 +105,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_MISSING_PARAMETER \ "{ 'class': 'MissingParameter', 'data': { 'name': %s } }" +#define QERR_NO_BUS_FOR_DEVICE \ + "{ 'class': 'NoBusForDevice', 'data': { 'device': %s, 'bus': %s } }" + #define QERR_OPEN_FILE_FAILED \ "{ 'class': 'OpenFileFailed', 'data': { 'filename': %s } }"