diff options
Diffstat (limited to 'hw/qdev-monitor.c')
-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 a6f0e16397..56a34587b8 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; } |