[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/3] qerror: add QERR_TOO_MANY_PARAMETERS
From: |
Amos Kong |
Subject: |
[Qemu-devel] [PATCH 1/3] qerror: add QERR_TOO_MANY_PARAMETERS |
Date: |
Fri, 25 May 2012 11:31:59 +0800 |
Signed-off-by: Amos Kong <address@hidden>
---
qerror.c | 4 ++++
qerror.h | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/qerror.c b/qerror.c
index 5092fe7..a5b6fd4 100644
--- a/qerror.c
+++ b/qerror.c
@@ -172,6 +172,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Parameter '%(name)' expects %(expected)",
},
{
+ .error_fmt = QERR_TOO_MANY_PARAMETERS,
+ .desc = "Too many parameters",
+ },
+ {
.error_fmt = QERR_INVALID_PASSWORD,
.desc = "Password incorrect",
},
diff --git a/qerror.h b/qerror.h
index 4cbba48..5341ea6 100644
--- a/qerror.h
+++ b/qerror.h
@@ -151,6 +151,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_INVALID_PARAMETER_VALUE \
"{ 'class': 'InvalidParameterValue', 'data': { 'name': %s, 'expected': %s
} }"
+#define QERR_TOO_MANY_PARAMETERS \
+ "{ 'class': 'TooManyParameters', 'data': {} }"
+
#define QERR_INVALID_PASSWORD \
"{ 'class': 'InvalidPassword', 'data': {} }"
--
1.7.1
- [Qemu-devel] [PATCH 1/3] qerror: add QERR_TOO_MANY_PARAMETERS,
Amos Kong <=
- [Qemu-devel] [PATCH 2/3] fix doc of using raw values with sendkey, Amos Kong, 2012/05/24
- [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Amos Kong, 2012/05/24
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Eric Blake, 2012/05/24
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Amos Kong, 2012/05/25
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Daniel P. Berrange, 2012/05/25
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Markus Armbruster, 2012/05/25
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Luiz Capitulino, 2012/05/25
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Daniel P. Berrange, 2012/05/25
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Luiz Capitulino, 2012/05/25
- Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey, Anthony Liguori, 2012/05/25