Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3ZxZ-000517-BZ for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3ZxU-0004yT-Eo for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:56 -0400 Received: from [199.232.76.173] (port=39776 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3ZxT-0004yF-WC for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60074) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3ZxS-0008Of-N2 for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:51 -0400 From: Luiz Capitulino Date: Thu, 29 Oct 2009 16:42:27 -0200 Message-Id: <1256841750-15228-5-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> References: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 4/7] QError: Add QERR_DEV_NFOUND List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, aliguori@us.ibm.com, kraxel@redhat.com, hollisb@us.ibm.com A generic error to be triggered when a device is not found. Signed-off-by: Luiz Capitulino --- qerror.c | 4 ++++ qerror.h | 1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 0359d65..69eabfb 100644 --- a/qerror.c +++ b/qerror.c @@ -51,6 +51,10 @@ static QErrorTable qerror_table[] = { .code = QERR_UNKNOWN, .desc = "unknown error", }, + { + .code = QERR_DEV_NFOUND, + .desc = "device \"%(name)s\" not found", + }, }; /** diff --git a/qerror.h b/qerror.h index 2fd0d58..7f45360 100644 --- a/qerror.h +++ b/qerror.h @@ -21,6 +21,7 @@ */ typedef enum QErrorCode { QERR_UNKNOWN, + QERR_DEV_NFOUND, QERR_MAX, } QErrorCode; -- 1.6.5.2.74.g610f9