From patchwork Fri Jan 15 16:25:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 42977 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B8017B6F3E for ; Sat, 16 Jan 2010 03:50:34 +1100 (EST) Received: from localhost ([127.0.0.1]:50122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVpMm-000059-OH for incoming@patchwork.ozlabs.org; Fri, 15 Jan 2010 11:49:44 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVpKJ-0007wY-IW for qemu-devel@nongnu.org; Fri, 15 Jan 2010 11:47:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVpKC-0007uY-HZ for qemu-devel@nongnu.org; Fri, 15 Jan 2010 11:47:09 -0500 Received: from [199.232.76.173] (port=36901 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVpKC-0007uV-Df for qemu-devel@nongnu.org; Fri, 15 Jan 2010 11:47:04 -0500 Received: from mx20.gnu.org ([199.232.41.8]:29902) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVpKB-0000sb-Oa for qemu-devel@nongnu.org; Fri, 15 Jan 2010 11:47:04 -0500 Received: from oxygen.pond.sub.org ([213.239.205.148]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVozN-0003b4-4f for qemu-devel@nongnu.org; Fri, 15 Jan 2010 11:25:33 -0500 Received: from blackfin.pond.sub.org (pD9E3B8FA.dip.t-dialin.net [217.227.184.250]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 97B4B276D65 for ; Fri, 15 Jan 2010 17:25:29 +0100 (CET) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id 3D0B13E4; Fri, 15 Jan 2010 17:25:29 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Fri, 15 Jan 2010 17:25:25 +0100 Message-Id: <1263572729-14813-3-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1263572729-14813-1-git-send-email-armbru@redhat.com> References: <1263572729-14813-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [Qemu-devel] [PATCH 2/6] QError: New QERR_FOPEN_FAILED X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Markus Armbruster --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 5f8fc5d..e7b8ca7 100644 --- a/qerror.c +++ b/qerror.c @@ -73,6 +73,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "No file descriptor supplied via SCM_RIGHTS", }, { + .error_fmt = QERR_FOPEN_FAILED, + .desc = "Could not open '%{filename}'", + }, + { .error_fmt = QERR_INVALID_BLOCK_FORMAT, .desc = "Invalid block format %(name)", }, diff --git a/qerror.h b/qerror.h index 9e220d6..8701570 100644 --- a/qerror.h +++ b/qerror.h @@ -64,6 +64,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_FD_NOT_SUPPLIED \ "{ 'class': 'FdNotSupplied', 'data': {} }" +#define QERR_FOPEN_FAILED \ + "{ 'class': 'FopenFailed', 'data': { 'filename': %s } }" + #define QERR_INVALID_BLOCK_FORMAT \ "{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }"