From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxwoh-0005Q9-QX for qemu-devel@nongnu.org; Thu, 28 May 2015 08:21:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxwoc-0007yh-RF for qemu-devel@nongnu.org; Thu, 28 May 2015 08:21:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxwoc-0007yL-N9 for qemu-devel@nongnu.org; Thu, 28 May 2015 08:21:38 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 6B2742932EC for ; Thu, 28 May 2015 12:21:38 +0000 (UTC) From: Markus Armbruster Date: Thu, 28 May 2015 14:21:28 +0200 Message-Id: <1432815695-31687-3-git-send-email-armbru@redhat.com> In-Reply-To: <1432815695-31687-1-git-send-email-armbru@redhat.com> References: <1432815695-31687-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 2/9] vl: Print -device help at most once List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com We print it once for each -device help. Not helpful. Stop after the first one. Signed-off-by: Markus Armbruster --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 07a890f..a31e7a5 100644 --- a/vl.c +++ b/vl.c @@ -4044,7 +4044,7 @@ int main(int argc, char **argv, char **envp) exit(1); } - if (qemu_opts_foreach(qemu_find_opts("device"), device_help_func, NULL, 0) + if (qemu_opts_foreach(qemu_find_opts("device"), device_help_func, NULL, 1) != 0) { exit(0); } -- 1.9.3