[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 2/9] vl: Print -device help at most once
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PATCH v2 2/9] vl: Print -device help at most once |
Date: |
Wed, 3 Jun 2015 11:17:49 +0200 |
We print it once for each -device help. Not helpful. Stop after the
first one.
Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
vl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vl.c b/vl.c
index 04a6066..2194e5d 100644
--- a/vl.c
+++ b/vl.c
@@ -4038,7 +4038,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
- [Qemu-devel] [PATCH v2 0/9] Miscellaneous error reporting improvements, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 4/9] QemuOpts: Drop qemu_opts_foreach() parameter abort_on_failure, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 9/9] vhost-user: Improve -netdev/netdev_add/-net/... error reporting, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 7/9] QemuOpts: Drop qemu_opt_foreach() parameter abort_on_failure, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 1/9] vl: Report failure to sandbox at most once, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 3/9] vl: Fail right after first bad -object, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 2/9] vl: Print -device help at most once,
Markus Armbruster <=
- [Qemu-devel] [PATCH v2 5/9] QemuOpts: Convert qemu_opts_foreach() to Error, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 8/9] QemuOpts: Convert qemu_opt_foreach() to Error, Markus Armbruster, 2015/06/03
- [Qemu-devel] [PATCH v2 6/9] blkdebug: Simplify passing of Error through qemu_opts_foreach(), Markus Armbruster, 2015/06/03