]> git.proxmox.com Git - qemu.git/commitdiff
error: New QERR_NO_BUS_FOR_DEVICE
authorMarkus Armbruster <armbru@redhat.com>
Fri, 19 Feb 2010 18:54:06 +0000 (19:54 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 16:45:34 +0000 (17:45 +0100)
qerror.c
qerror.h

index a3692045887fd54325a94eb6f9a3ad8f1238585a..26eb70472e6aa3fd4668e1fb2c2d456a3ab947b3 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -124,6 +124,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_MISSING_PARAMETER,
         .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)'",
index 10a37f3f9bde192ffc44c02baa4feabb928937b4..88b297a96da390fc2aecbb75d92b02896b40ff99 100644 (file)
--- 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 } }"