From: Markus Armbruster Date: Fri, 13 Mar 2015 12:02:03 +0000 (+0100) Subject: vl: Print -device help at most once X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8416abb3b0f42132fc6346c439ec543635075135;p=qemu.git vl: Print -device help at most once We print it once for each -device help. Not helpful. Stop after the first one. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- diff --git a/vl.c b/vl.c index dd56a82f09..680f4d82a5 100644 --- a/vl.c +++ b/vl.c @@ -4049,7 +4049,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); }