From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiRZa-000133-GK for qemu-devel@nongnu.org; Wed, 04 Jan 2012 09:12:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiRZZ-0001fT-7Q for qemu-devel@nongnu.org; Wed, 04 Jan 2012 09:12:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiRZY-0001fL-VM for qemu-devel@nongnu.org; Wed, 04 Jan 2012 09:12:09 -0500 Message-Id: <20120104140945.411873214@redhat.com> Date: Wed, 04 Jan 2012 12:08:56 -0200 From: Marcelo Tosatti References: <20120104140854.631720304@redhat.com> Content-Disposition: inline; filename=qerr-base-id-not-found Subject: [Qemu-devel] [patch 2/4] add QERR_BASE_ID_NOT_FOUND List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stefanha@linux.vnet.ibm.com, kwolf@redhat.com, qemu-devel@nongnu.org Cc: Marcelo Tosatti Signed-off-by: Marcelo Tosatti Index: stefanha/qerror.c =================================================================== --- stefanha.orig/qerror.c +++ stefanha/qerror.c @@ -254,6 +254,10 @@ static const QErrorStringTable qerror_ta .error_fmt = QERR_INVALID_PARAMETER_COMBINATION, .desc = "Invalid paramter combination", }, + { + .error_fmt = QERR_BASE_ID_NOT_FOUND, + .desc = "The base id %(base_id) has not been found", + }, {} }; Index: stefanha/qerror.h =================================================================== --- stefanha.orig/qerror.h +++ stefanha/qerror.h @@ -210,4 +210,7 @@ QError *qobject_to_qerror(const QObject #define QERR_INVALID_PARAMETER_COMBINATION \ "{ 'class': 'InvalidParameterCombination', 'data': {} }" +#define QERR_BASE_ID_NOT_FOUND \ + "{ 'class': 'BaseIdNotFound', 'data': { 'base_id': %s } }" + #endif /* QERROR_H */