qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] qerror: add QERR_TOO_MANY_PARAMETERS
@ 2012-05-25  3:31 Amos Kong
  2012-05-25  3:32 ` [Qemu-devel] [PATCH 2/3] fix doc of using raw values with sendkey Amos Kong
  2012-05-25  3:32 ` [Qemu-devel] [PATCH 3/3] qapi: convert sendkey Amos Kong
  0 siblings, 2 replies; 15+ messages in thread
From: Amos Kong @ 2012-05-25  3:31 UTC (permalink / raw)
  To: aliguori, eblake, berrange, lcapitulino, qemu-devel; +Cc: Amos Kong

Signed-off-by: Amos Kong <akong@redhat.com>
---
 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

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-05-25 14:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-25  3:31 [Qemu-devel] [PATCH 1/3] qerror: add QERR_TOO_MANY_PARAMETERS Amos Kong
2012-05-25  3:32 ` [Qemu-devel] [PATCH 2/3] fix doc of using raw values with sendkey Amos Kong
2012-05-25  3:32 ` [Qemu-devel] [PATCH 3/3] qapi: convert sendkey Amos Kong
2012-05-25  3:51   ` Eric Blake
2012-05-25  6:20     ` Amos Kong
2012-05-25  7:34       ` Daniel P. Berrange
2012-05-25 12:18         ` Markus Armbruster
2012-05-25 13:06         ` Luiz Capitulino
2012-05-25 13:12           ` Daniel P. Berrange
2012-05-25 13:15             ` Luiz Capitulino
2012-05-25 13:16           ` Anthony Liguori
2012-05-25 13:00       ` Luiz Capitulino
2012-05-25 14:23         ` Jeff Cody
2012-05-25 13:14     ` Anthony Liguori
2012-05-25 14:35   ` Luiz Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).