diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2023-10-18 13:05:00 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2023-10-19 07:21:37 +0200 |
| commit | e307a8174bb876ba0ac91cf1c2ced01ec4374af9 (patch) | |
| tree | 4337a1e7029cc8fb334e039d1c96dd41447dcde7 /hw/arm/virt.c | |
| parent | 0a59c02b0c4fd4591b010410bdfd423b9e259b03 (diff) | |
| download | focaccia-qemu-e307a8174bb876ba0ac91cf1c2ced01ec4374af9.tar.gz focaccia-qemu-e307a8174bb876ba0ac91cf1c2ced01ec4374af9.zip | |
qapi: provide a friendly string representation of QAPI classes
If printing a QAPI schema object for debugging we get the classname and a hex value for the instance: <qapi.schema.QAPISchemaEnumType object at 0x7f0ab4c2dad0> <qapi.schema.QAPISchemaObjectType object at 0x7f0ab4c2dd90> <qapi.schema.QAPISchemaArrayType object at 0x7f0ab4c2df90> With this change we instead get the classname and the human friendly name of the QAPI type instance: <QAPISchemaEnumType:CpuS390State at 0x7f0ab4c2dad0> <QAPISchemaObjectType:CpuInfoS390 at 0x7f0ab4c2dd90> <QAPISchemaArrayType:CpuInfoFastList at 0x7f0ab4c2df90> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20231018120500.2028642-1-berrange@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [Conditional swapped to avoid negation] Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> [Tweaked to mollify pylint] Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/arm/virt.c')
0 files changed, 0 insertions, 0 deletions