]> git.proxmox.com Git - qemu.git/commitdiff
error: New QERR_PROPERTY_VALUE_IN_USE
authorMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 16:40:48 +0000 (17:40 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 16:45:26 +0000 (17:45 +0100)
qerror.c
qerror.h

index 62bb00fb1bb05ea987247f34bfd5caedbb01743b..6b593882929ff79121819bb44504865a43e00151 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -112,6 +112,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_PROPERTY_VALUE_BAD,
         .desc      = "Property '%(device).%(property)' doesn't take value '%(value)'",
     },
+    {
+        .error_fmt = QERR_PROPERTY_VALUE_IN_USE,
+        .desc      = "Property '%(device).%(property)' can't take value '%(value)', it's in use",
+    },
     {
         .error_fmt = QERR_QMP_BAD_INPUT_OBJECT,
         .desc      = "Bad QMP input object",
index d5f0e9dc3c49a36b7f878718560b250fa84ddd34..f7a10b7b9a3a0e6f27669b0ee632a1e7256df82e 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -96,6 +96,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_PROPERTY_VALUE_BAD \
     "{ 'class': 'PropertyValueBad', 'data': { 'device': %s, 'property': %s, 'value': %s } }"
 
+#define QERR_PROPERTY_VALUE_IN_USE \
+    "{ 'class': 'PropertyValueInUse', 'data': { 'device': %s, 'property': %s, 'value': %s } }"
+
 #define QERR_QMP_BAD_INPUT_OBJECT \
     "{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }"