mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
qdev: Use object_property_print() in info qtree
Otherwise, non-string properties without a legacy counterpart are missed. Also fix error propagation in object_property_print() itself. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
7a05995361
commit
8185bfc146
2 changed files with 2 additions and 2 deletions
|
@ -830,7 +830,7 @@ char *object_property_print(Object *obj, const char *name,
|
|||
char *string;
|
||||
|
||||
mo = string_output_visitor_new();
|
||||
object_property_get(obj, string_output_get_visitor(mo), name, NULL);
|
||||
object_property_get(obj, string_output_get_visitor(mo), name, errp);
|
||||
string = string_output_get_string(mo);
|
||||
string_output_visitor_cleanup(mo);
|
||||
return string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue