Re: [PATCH v3] qapi: provide a friendly string representation of QAPI classes

2023-10-18 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 18/10/23 15:02, Daniel P. Berrangé wrote: >> On Wed, Oct 18, 2023 at 02:37:45PM +0200, Markus Armbruster wrote: >>> Daniel P. Berrangé writes: >>> If printing a QAPI schema object for debugging we get the classname and a hex value for the instance: >

Re: [PATCH v3] qapi: provide a friendly string representation of QAPI classes

2023-10-18 Thread Philippe Mathieu-Daudé
On 18/10/23 15:02, Daniel P. Berrangé wrote: On Wed, Oct 18, 2023 at 02:37:45PM +0200, Markus Armbruster wrote: Daniel P. Berrangé writes: If printing a QAPI schema object for debugging we get the classname and a hex value for the instance: With this change we instead get the cl

Re: [PATCH v3] qapi: provide a friendly string representation of QAPI classes

2023-10-18 Thread Daniel P . Berrangé
On Wed, Oct 18, 2023 at 02:37:45PM +0200, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > If printing a QAPI schema object for debugging we get the classname and > > a hex value for the instance: > > > > > > > > > > > > With this change we instead get the classname and the hu

Re: [PATCH v3] qapi: provide a friendly string representation of QAPI classes

2023-10-18 Thread Markus Armbruster
Daniel P. Berrangé writes: > If printing a QAPI schema object for debugging we get the classname and > a hex value for the instance: > > > > > > With this change we instead get the classname and the human friendly > name of the QAPI type instance: > > > > > > Signed-off-by: Dani

[PATCH v3] qapi: provide a friendly string representation of QAPI classes

2023-10-18 Thread Daniel P . Berrangé
If printing a QAPI schema object for debugging we get the classname and a hex value for the instance: With this change we instead get the classname and the human friendly name of the QAPI type instance: Signed-off-by: Daniel P. Berrangé --- Changed in v3: - Retain the obje