Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6QXp-0000mb-Oe for qemu-devel@nongnu.org; Mon, 26 Apr 2010 11:48:25 -0400 Received: from [140.186.70.92] (port=34695 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6QXo-0000m1-Cz for qemu-devel@nongnu.org; Mon, 26 Apr 2010 11:48:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6QXm-0007E0-VB for qemu-devel@nongnu.org; Mon, 26 Apr 2010 11:48:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8808) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6QXk-0007Ds-RM for qemu-devel@nongnu.org; Mon, 26 Apr 2010 11:48:22 -0400 From: Luiz Capitulino Date: Mon, 26 Apr 2010 12:47:25 -0300 Message-Id: <1272296853-30285-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1272296853-30285-1-git-send-email-lcapitulino@redhat.com> References: <1272296853-30285-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 1/9] QError: New QERR_QMP_BAD_INPUT_OBJECT_MEMBER List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: qemu-devel@nongnu.org Signed-off-by: Luiz Capitulino --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 8d885cd..b6aaec7 100644 --- a/qerror.c +++ b/qerror.c @@ -173,6 +173,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Bad QMP input object", }, { + .error_fmt = QERR_QMP_BAD_INPUT_OBJECT_MEMBER, + .desc = "QMP input object member '%(member)' expects '%(expected)'", + }, + { .error_fmt = QERR_SET_PASSWD_FAILED, .desc = "Could not set password", }, diff --git a/qerror.h b/qerror.h index bae08c0..c98c61a 100644 --- a/qerror.h +++ b/qerror.h @@ -145,6 +145,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_QMP_BAD_INPUT_OBJECT \ "{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }" +#define QERR_QMP_BAD_INPUT_OBJECT_MEMBER \ + "{ 'class': 'QMPBadInputObjectMember', 'data': { 'member': %s, 'expected': %s } }" + #define QERR_SET_PASSWD_FAILED \ "{ 'class': 'SetPasswdFailed', 'data': {} }" -- 1.7.1.rc1.12.ga6018