[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/13] QError: Add QERR_DEVICE_NOT_ACTIVE
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PATCH 11/13] QError: Add QERR_DEVICE_NOT_ACTIVE |
Date: |
Wed, 18 Nov 2009 23:05:34 -0200 |
New class for device not active errors.
Signed-off-by: Luiz Capitulino <address@hidden>
---
qerror.c | 4 ++++
qerror.h | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/qerror.c b/qerror.c
index a12e7f7..0c0a510 100644
--- 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",
+ },
{}
};
diff --git a/qerror.h b/qerror.h
index 413acc6..c1be8b9 100644
--- 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 */
--
1.6.5.3.148.g785c5
- [Qemu-devel] [PATCH 01/13] QJSON: Introduce qobject_from_jsonv(), (continued)
- [Qemu-devel] [PATCH 01/13] QJSON: Introduce qobject_from_jsonv(), Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 02/13] QString: Introduce qstring_append_chr(), Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 03/13] QString: Introduce qstring_append_int(), Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 04/13] QString: Introduce qstring_from_substr(), Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 05/13] utests: Add qstring_append_chr() unit-test, Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 06/13] utests: Add qstring_from_substr() unit-test, Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 07/13] Introduce QError, Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 08/13] monitor: QError support, Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 09/13] QError: Add QERR_DEVICE_NOT_FOUND, Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 10/13] qdev: Use QError for 'device not found' error, Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 11/13] QError: Add QERR_DEVICE_NOT_ACTIVE,
Luiz Capitulino <=
- [Qemu-devel] [PATCH 12/13] QError: Add QERR_KVM_MISSING_CAP, Luiz Capitulino, 2009/11/18
- [Qemu-devel] [PATCH 13/13] monitor: do_info_balloon(): Use QError, Luiz Capitulino, 2009/11/18
- Re: [Qemu-devel] [PATCH 00/13]: QError v5, Markus Armbruster, 2009/11/19