Revision 036f7166 hw/qdev.c
b/hw/qdev.c | ||
---|---|---|
180 | 180 |
} |
181 | 181 |
|
182 | 182 |
for (prop = info->props; prop && prop->name; prop++) { |
183 |
/* |
|
184 |
* TODO Properties without a parser are just for dirty hacks. |
|
185 |
* qdev_prop_ptr is the only such PropertyInfo. It's marked |
|
186 |
* for removal. This conditional should be removed along with |
|
187 |
* it. |
|
188 |
*/ |
|
189 |
if (!prop->info->parse) { |
|
190 |
continue; /* no way to set it, don't show */ |
|
191 |
} |
|
183 | 192 |
error_printf("%s.%s=%s\n", info->name, prop->name, prop->info->name); |
184 | 193 |
} |
185 | 194 |
return 1; |
... | ... | |
682 | 691 |
if (!props) |
683 | 692 |
return; |
684 | 693 |
while (props->name) { |
694 |
/* |
|
695 |
* TODO Properties without a print method are just for dirty |
|
696 |
* hacks. qdev_prop_ptr is the only such PropertyInfo. It's |
|
697 |
* marked for removal. The test props->info->print should be |
|
698 |
* removed along with it. |
|
699 |
*/ |
|
685 | 700 |
if (props->info->print) { |
686 | 701 |
props->info->print(dev, props, buf, sizeof(buf)); |
687 | 702 |
qdev_printf("%s-prop: %s = %s\n", prefix, props->name, buf); |
Also available in: Unified diff