prop = qdev_prop_find(dev, name);
if (!prop) {
- fprintf(stderr, "property \"%s.%s\" not found\n",
- dev->info->name, name);
+ if (strcmp(name, "?") != 0) {
+ fprintf(stderr, "property \"%s.%s\" not found\n",
+ dev->info->name, name);
+ } else {
+ fprintf(stderr, "supported properties:\n");
+ if (dev->info->props != NULL) {
+ Property *props = dev->info->props;
+ while (props->name) {
+ fprintf(stderr, "%s.%s\n", dev->info->name, props->name);
+ props++;
+ }
+ }
+ }
return -1;
}
if (!prop->info->parse) {