diff options
author | Markus Armbruster | 2010-01-29 19:48:57 +0100 |
---|---|---|
committer | Anthony Liguori | 2010-02-03 19:39:01 +0100 |
commit | ff952ba25deb927fea0b30b8a74e0059a47c1ef1 (patch) | |
tree | 3920f203e387d4911f1d83345bda8efb70918535 /hw/qdev-properties.c | |
parent | qemu-option: Make qemu_opts_foreach() accumulate return values (diff) | |
download | qemu-ff952ba25deb927fea0b30b8a74e0059a47c1ef1.tar.gz qemu-ff952ba25deb927fea0b30b8a74e0059a47c1ef1.tar.xz qemu-ff952ba25deb927fea0b30b8a74e0059a47c1ef1.zip |
qdev: Fix exit code for -device ?
Help was shoehorned into device creation, qdev_device_add(). Since
help doesn't create a device, it returns NULL, which looks to callers
just like failed device creation. Monitor handler do_device_add()
doesn't care, but main() exits unsuccessfully.
Move help out of device creation, into new qdev_device_help().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev-properties.c')
0 files changed, 0 insertions, 0 deletions