From patchwork Thu Jul 14 20:00:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 104720 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 75EE3B6F00 for ; Fri, 15 Jul 2011 06:16:45 +1000 (EST) Received: from localhost ([::1]:60143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhSKv-0002ki-OP for incoming@patchwork.ozlabs.org; Thu, 14 Jul 2011 16:16:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhS5n-0008Hx-Lh for qemu-devel@nongnu.org; Thu, 14 Jul 2011 16:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhS5l-0000xp-N3 for qemu-devel@nongnu.org; Thu, 14 Jul 2011 16:01:03 -0400 Received: from mout.perfora.net ([74.208.4.194]:50527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhS5l-0000xf-Ak for qemu-devel@nongnu.org; Thu, 14 Jul 2011 16:01:01 -0400 Received: from localhost.localdomain ([32.97.110.59]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0Ma22J-1QuqsQ25gV-00Lo41; Thu, 14 Jul 2011 16:00:56 -0400 From: Michael Roth To: qemu-devel@nongnu.org Date: Thu, 14 Jul 2011 15:00:31 -0500 Message-Id: <1310673634-17631-2-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1310673634-17631-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1310673634-17631-1-git-send-email-mdroth@linux.vnet.ibm.com> X-Provags-ID: V02:K0:aZA3hLdIWqx3kKEOxB4tRU7jBPtCBIRmNRd6ESUu8aR iqIrsMOF7ouZE3cvZkZKJjtVlB+euy1IQiID5GoMjN8FZXBxOz GZe/S8pxnzoR23u7SWpJcXd1dpeUK8zgu+HMUMXaX/eTx4DLbF OvnKqStrZ4PDKdmYKL3MAW1EHhFw1jiKDByN65U/JDZNpXsnUr MmcOk6ZHHkiVQs55Fq88MYSEA+NIM5a99MA1qPXXC8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.194 Cc: aliguori@linux.vnet.ibm.com, Jes.Sorensen@redhat.com, agl@linux.vnet.ibm.com, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH v7 1/4] qerror: add QERR_JSON_PARSE_ERROR to qerror.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Missing from previous addition of error to qerror.h. Needed for qerror_format() and friends. Signed-off-by: Michael Roth --- 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", },