From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv84N-0006vc-HX for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:19:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv84G-0006rS-EZ for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:19:01 -0400 Received: from [199.232.76.173] (port=40401 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv84E-0006q3-Ch for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:18:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5046) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mv84D-0007sL-FY for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:18:53 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n96BIqq3028453 for ; Tue, 6 Oct 2009 07:18:52 -0400 From: Mark McLoughlin Date: Tue, 6 Oct 2009 12:17:00 +0100 Message-Id: <1254827836-11021-11-git-send-email-markmc@redhat.com> In-Reply-To: <1254827783.2720.42.camel@blaa> References: <1254827783.2720.42.camel@blaa> Subject: [Qemu-devel] [PATCH] Remove double error message in qemu_option_set() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Mark McLoughlin qemu_opt_set() prints an error message in all failure cases, so qemu_set_option() doesn't need to print another error. Signed-off-by: Mark McLoughlin --- qemu-config.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/qemu-config.c b/qemu-config.c index 2e396ae..f5c1a12 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -209,8 +209,6 @@ int qemu_set_option(const char *str) } if (qemu_opt_set(opts, arg, str+offset+1) == -1) { - qemu_error("failed to set \"%s\" for %s \"%s\"\n", - arg, lists[i]->name, id); return -1; } return 0; -- 1.6.2.5