From 56e9f56309b7c77dfb328dbf450d04fd54ce4542 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 19 Feb 2010 19:52:45 +0100 Subject: [PATCH] error: New QERR_BAD_BUS_FOR_DEVICE --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/qerror.c b/qerror.c index b176d7c5ac..345bfefe47 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_BAD_BUS_FOR_DEVICE, + .desc = "Device '%(device)' can't go on a %(bad_bus_type) bus", + }, { .error_fmt = QERR_BUS_NOT_FOUND, .desc = "Bus '%(bus)' not found", diff --git a/qerror.h b/qerror.h index baca7ded1a..87fde06f11 100644 --- a/qerror.h +++ b/qerror.h @@ -42,6 +42,9 @@ QError *qobject_to_qerror(const QObject *obj); /* * QError class list */ +#define QERR_BAD_BUS_FOR_DEVICE \ + "{ 'class': 'BadBusForDevice', 'data': { 'device': %s, 'bad_bus_type': %s } }" + #define QERR_BUS_NOT_FOUND \ "{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"