From patchwork Tue Jul 31 05:16:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Cody X-Patchwork-Id: 174143 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5F1DB2C009B for ; Tue, 31 Jul 2012 15:17:07 +1000 (EST) Received: from localhost ([::1]:33269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw4pM-0000e1-OX for incoming@patchwork.ozlabs.org; Tue, 31 Jul 2012 01:17:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw4on-0007oD-0j for qemu-devel@nongnu.org; Tue, 31 Jul 2012 01:16:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sw4ol-0005vx-W8 for qemu-devel@nongnu.org; Tue, 31 Jul 2012 01:16:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw4ol-0005vs-O1 for qemu-devel@nongnu.org; Tue, 31 Jul 2012 01:16:27 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6V5GOrI005548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 31 Jul 2012 01:16:24 -0400 Received: from localhost (ovpn-112-31.phx2.redhat.com [10.3.112.31]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6V5GM3J004589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 31 Jul 2012 01:16:24 -0400 From: Jeff Cody To: qemu-devel@nongnu.org Date: Tue, 31 Jul 2012 01:16:12 -0400 Message-Id: <6fa5167365c66d4c450000e86c34b77db0bd2288.1343710713.git.jcody@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, pbonzini@redhat.com, stefanha@gmail.com, supriyak@linux.vnet.ibm.com Subject: [Qemu-devel] [RFC PATCH 3/4] qerror: new errors for live block commit, QERR_TOP_NOT_FOUND 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 Signed-off-by: Jeff Cody --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/qerror.c b/qerror.c index 25c2733..69a59ab 100644 --- a/qerror.c +++ b/qerror.c @@ -307,6 +307,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Too many open files", }, { + .error_fmt = QERR_TOP_NOT_FOUND, + .desc = "Top '%(top)' not found", + }, + { .error_fmt = QERR_UNDEFINED_ERROR, .desc = "An undefined error has occurred", }, diff --git a/qerror.h b/qerror.h index 0f9f303..931c703 100644 --- a/qerror.h +++ b/qerror.h @@ -251,6 +251,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_TOO_MANY_FILES \ "{ 'class': 'TooManyFiles', 'data': {} }" +#define QERR_TOP_NOT_FOUND \ + "{ 'class': 'TopNotFound', 'data': { 'top': %s } }" + #define QERR_UNDEFINED_ERROR \ "{ 'class': 'UndefinedError', 'data': {} }"