Commit d03d6b4e authored by Anthony Liguori's avatar Anthony Liguori

info qdm: do not require a parent_bus to be set

Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 60adba37
...@@ -163,12 +163,14 @@ int qdev_device_help(QemuOpts *opts) ...@@ -163,12 +163,14 @@ int qdev_device_help(QemuOpts *opts)
error_printf("%s.%s=%s\n", driver, prop->name, error_printf("%s.%s=%s\n", driver, prop->name,
prop->info->legacy_name ?: prop->info->name); prop->info->legacy_name ?: prop->info->name);
} }
for (prop = info->bus_info->props; prop && prop->name; prop++) { if (info->bus_info) {
if (!prop->info->parse) { for (prop = info->bus_info->props; prop && prop->name; prop++) {
continue; /* no way to set it, don't show */ 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; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment