qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/9] vl: Print -device help at most once


From: Markus Armbruster
Subject: [Qemu-devel] [PATCH 2/9] vl: Print -device help at most once
Date: Thu, 28 May 2015 14:21:28 +0200

We print it once for each -device help.  Not helpful.  Stop after the
first one.

Signed-off-by: Markus Armbruster <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]