projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa924ae
)
error: New QERR_BAD_BUS_FOR_DEVICE
author
Markus Armbruster
<armbru@redhat.com>
Fri, 19 Feb 2010 18:52:45 +0000
(19:52 +0100)
committer
Markus Armbruster
<armbru@redhat.com>
Tue, 16 Mar 2010 16:45:34 +0000
(17:45 +0100)
qerror.c
patch
|
blob
|
history
qerror.h
patch
|
blob
|
history
diff --git
a/qerror.c
b/qerror.c
index b176d7c5ac24c459454df3f18fc134d405dc96b2..345bfefe4747b6a6c2a2b1d3d7dce288d28bf4e4 100644
(file)
--- 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 baca7ded1a91cd1fbb4db190f149baab7ae52508..87fde06f11215626e36b5b423b7b13b041b0c308 100644
(file)
--- 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 } }"