diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-23 08:16:58 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-03 10:41:08 -0600 |
commit | d03d6b4e5cc33d5c9e035e68aa30da1a32780f7d (patch) | |
tree | 6432f250ab840330c05326a32b2c2bbd24d8baa3 /hw | |
parent | 60adba3769e8430e57e3a3e651f8041efdd7488e (diff) | |
download | qemu-d03d6b4e5cc33d5c9e035e68aa30da1a32780f7d.zip qemu-d03d6b4e5cc33d5c9e035e68aa30da1a32780f7d.tar.gz qemu-d03d6b4e5cc33d5c9e035e68aa30da1a32780f7d.tar.bz2 |
info qdm: do not require a parent_bus to be set
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/qdev-monitor.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/hw/qdev-monitor.c b/hw/qdev-monitor.c index a6f0e16..56a3458 100644 --- a/hw/qdev-monitor.c +++ b/hw/qdev-monitor.c @@ -163,12 +163,14 @@ int qdev_device_help(QemuOpts *opts) error_printf("%s.%s=%s\n", driver, prop->name, prop->info->legacy_name ?: prop->info->name); } - for (prop = info->bus_info->props; prop && prop->name; prop++) { - if (!prop->info->parse) { - continue; /* no way to set it, don't show */ + if (info->bus_info) { + for (prop = info->bus_info->props; prop && prop->name; prop++) { + if (!prop->info->parse) { + continue; /* no way to set it, don't show */ + } + error_printf("%s.%s=%s\n", driver, prop->name, + prop->info->legacy_name ?: prop->info->name); } - error_printf("%s.%s=%s\n", driver, prop->name, - prop->info->legacy_name ?: prop->info->name); } return 1; } |