From patchwork Thu Dec 9 06:59:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lai Jiangshan X-Patchwork-Id: 393052 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB96uUTw016951 for ; Thu, 9 Dec 2010 06:56:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754988Ab0LIG42 (ORCPT ); Thu, 9 Dec 2010 01:56:28 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:55493 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752891Ab0LIG41 (ORCPT ); Thu, 9 Dec 2010 01:56:27 -0500 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 9EC22170CB1; Thu, 9 Dec 2010 14:56:26 +0800 (CST) Received: from mailserver.fnst.cn.fujitus.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id oB96phoO006064; Thu, 9 Dec 2010 14:51:43 +0800 Received: from [10.167.225.68] ([10.167.225.68]) by mailserver.fnst.cn.fujitus.com (Lotus Domino Release 8.5.1FP4) with ESMTP id 2010120914562810-195525 ; Thu, 9 Dec 2010 14:56:28 +0800 Message-ID: <4D007E4E.2040308@cn.fujitsu.com> Date: Thu, 09 Dec 2010 14:59:26 +0800 From: Lai Jiangshan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Luiz Capitulino , qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: [PATCH 3/6] qumu,qmp: QError: New QERR_INVALID_KEY X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2010-12-09 14:56:28, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2010-12-09 14:56:31, Serialize complete at 2010-12-09 14:56:31 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 09 Dec 2010 06:56:30 +0000 (UTC) diff --git a/qerror.c b/qerror.c index ac2cdaf..a7ef758 100644 --- a/qerror.c +++ b/qerror.c @@ -117,6 +117,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Invalid block format '%(name)'", }, { + .error_fmt = QERR_INVALID_KEY, + .desc = "Invalid key: '%(name)...'", + }, + { .error_fmt = QERR_INVALID_PARAMETER, .desc = "Invalid parameter '%(name)'", }, diff --git a/qerror.h b/qerror.h index 943a24b..4fa95ef 100644 --- a/qerror.h +++ b/qerror.h @@ -102,6 +102,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_INVALID_BLOCK_FORMAT \ "{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }" +#define QERR_INVALID_KEY \ + "{ 'class': 'InvalidKey', 'data': { 'name': %s } }" + #define QERR_INVALID_PARAMETER \ "{ 'class': 'InvalidParameter', 'data': { 'name': %s } }"