object.c (668f62ec621e4e2919fb7d4caa5d805764c5852d) | object.c (af175e85f92c870386ad74f466e29537b79611d3) |
---|---|
1/* 2 * QEMU Object Model 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 1585 unchanged lines hidden (view full) --- 1594 return ok; 1595} 1596 1597char *object_property_print(Object *obj, const char *name, bool human, 1598 Error **errp) 1599{ 1600 Visitor *v; 1601 char *string = NULL; | 1/* 2 * QEMU Object Model 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 1585 unchanged lines hidden (view full) --- 1594 return ok; 1595} 1596 1597char *object_property_print(Object *obj, const char *name, bool human, 1598 Error **errp) 1599{ 1600 Visitor *v; 1601 char *string = NULL; |
1602 Error *local_err = NULL; | |
1603 1604 v = string_output_visitor_new(human, &string); | 1602 1603 v = string_output_visitor_new(human, &string); |
1605 if (!object_property_get(obj, name, v, &local_err)) { 1606 error_propagate(errp, local_err); | 1604 if (!object_property_get(obj, name, v, errp)) { |
1607 goto out; 1608 } 1609 1610 visit_complete(v, &string); 1611 1612out: 1613 visit_free(v); 1614 return string; --- 1149 unchanged lines hidden --- | 1605 goto out; 1606 } 1607 1608 visit_complete(v, &string); 1609 1610out: 1611 visit_free(v); 1612 return string; --- 1149 unchanged lines hidden --- |