From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsIf7-0008Tb-BI for qemu-devel@nongnu.org; Thu, 18 Mar 2010 12:33:33 -0400 Received: from [199.232.76.173] (port=40356 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsIf6-0008Su-ND for qemu-devel@nongnu.org; Thu, 18 Mar 2010 12:33:32 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NsIey-0005Ma-LE for qemu-devel@nongnu.org; Thu, 18 Mar 2010 12:33:32 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:56559) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NsIey-0005MI-BA for qemu-devel@nongnu.org; Thu, 18 Mar 2010 12:33:24 -0400 Received: from blackfin.pond.sub.org (pD9E3ACC8.dip.t-dialin.net [217.227.172.200]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 23DAA2DD2FB for ; Thu, 18 Mar 2010 17:33:22 +0100 (CET) From: Markus Armbruster Date: Thu, 18 Mar 2010 17:33:15 +0100 Message-Id: <1268929996-28763-9-git-send-email-armbru@redhat.com> In-Reply-To: <1268929996-28763-1-git-send-email-armbru@redhat.com> References: <1268929996-28763-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 08/11] error: Convert qemu_opts_validate() to QError List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lcapitulino@redhat.com Signed-off-by: Markus Armbruster --- qemu-option.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/qemu-option.c b/qemu-option.c index 5c39666..8b45068 100644 --- a/qemu-option.c +++ b/qemu-option.c @@ -874,8 +874,7 @@ int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc) } } if (desc[i].name == NULL) { - fprintf(stderr, "option \"%s\" is not valid for %s\n", - opt->name, opts->list->name); + qerror_report(QERR_INVALID_PARAMETER, opt->name); return -1; } -- 1.6.6.1