From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjANs-0000Lx-IQ for qemu-devel@nongnu.org; Fri, 06 Jan 2012 09:03:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjANk-0001Oi-Bj for qemu-devel@nongnu.org; Fri, 06 Jan 2012 09:03:04 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:46740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjANk-0001OK-3S for qemu-devel@nongnu.org; Fri, 06 Jan 2012 09:02:56 -0500 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 Jan 2012 14:02:55 -0000 Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q06E2rVF2568328 for ; Fri, 6 Jan 2012 14:02:53 GMT Received: from d06av09.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q06E2r7u021807 for ; Fri, 6 Jan 2012 07:02:53 -0700 From: Stefan Hajnoczi Date: Fri, 6 Jan 2012 14:01:38 +0000 Message-Id: <1325858501-25741-13-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1325858501-25741-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1325858501-25741-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 12/15] add QERR_BASE_ID_NOT_FOUND List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Marcelo Tosatti , Stefan Hajnoczi , Luiz Capitulino From: Marcelo Tosatti Signed-off-by: Marcelo Tosatti Signed-off-by: Stefan Hajnoczi --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index feb3d35..42f5fc2 100644 --- a/qerror.c +++ b/qerror.c @@ -276,6 +276,10 @@ static const QErrorStringTable qerror_table[] = { .error_fmt = QERR_INVALID_PARAMETER_COMBINATION, .desc = "Invalid parameter combination", }, + { + .error_fmt = QERR_BASE_ID_NOT_FOUND, + .desc = "The base id %(base_id) has not been found", + }, {} }; diff --git a/qerror.h b/qerror.h index 095ba9d..50304c7 100644 --- a/qerror.h +++ b/qerror.h @@ -225,4 +225,7 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_INVALID_PARAMETER_COMBINATION \ "{ 'class': 'InvalidParameterCombination', 'data': {} }" +#define QERR_BASE_ID_NOT_FOUND \ + "{ 'class': 'BaseIdNotFound', 'data': { 'base_id': %s } }" + #endif /* QERROR_H */ -- 1.7.7.3