]> git.proxmox.com Git - qemu.git/commitdiff
QError: Add QERR_DEVICE_NOT_ACTIVE
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 19 Nov 2009 01:05:34 +0000 (23:05 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:21 +0000 (09:41 -0600)
New class for device not active errors.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qerror.c
qerror.h

index a12e7f7b1b119a5573079de635dd5a778d2c6626..0c0a5100aa1257dd4c815e3790230a7790ce8fb3 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -44,6 +44,10 @@ const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_DEVICE_NOT_FOUND,
         .desc      = "The %(device) device has not been found",
     },
+    {
+        .error_fmt = QERR_DEVICE_NOT_ACTIVE,
+        .desc      = "The %(device) device has not been activated by the guest",
+    },
     {}
 };
 
index 413acc678679d677731e1ddaed44972bf5d46f62..c1be8b96e445019ab10edd0845f885854ae49679 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -41,4 +41,7 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_DEVICE_NOT_FOUND \
         "{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }"
 
+#define QERR_DEVICE_NOT_ACTIVE \
+        "{ 'class': 'DeviceNotActive', 'data': { 'device': %s } }"
+
 #endif /* QERROR_H */