From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjzTT-0004Wn-Su for qemu-devel@nongnu.org; Thu, 21 Jul 2011 16:04:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjzTS-0001HZ-KG for qemu-devel@nongnu.org; Thu, 21 Jul 2011 16:03:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjzTS-0001HS-BD for qemu-devel@nongnu.org; Thu, 21 Jul 2011 16:03:58 -0400 From: Luiz Capitulino Date: Thu, 21 Jul 2011 17:01:11 -0300 Message-Id: <1311278474-24336-23-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1311278474-24336-1-git-send-email-lcapitulino@redhat.com> References: <1311278474-24336-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 22/25] qerror: add QERR_JSON_PARSE_ERROR to qerror.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: Luiz Capitulino , qemu-devel@nongnu.org, Michael Roth From: Michael Roth Missing from previous addition of error to qerror.h. Needed for qerror_format() and friends. Signed-off-by: Michael Roth Signed-off-by: Luiz Capitulino --- qerror.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index d7fcd93..c92adfc 100644 --- a/qerror.c +++ b/qerror.c @@ -141,6 +141,11 @@ static const QErrorStringTable qerror_table[] = { .desc = "Invalid JSON syntax", }, { + .error_fmt = QERR_JSON_PARSE_ERROR, + .desc = "JSON parse error, %(message)", + + }, + { .error_fmt = QERR_KVM_MISSING_CAP, .desc = "Using KVM without %(capability), %(feature) unavailable", }, -- 1.7.6.233.gd79bc