qapi: Fix QAPISchemaEntity.__repr__()
PATCH 1/1 qapi: Fix QAPISchemaEntity.__repr__()
I messed it up on merge. It's a debugging aid, so no impact on build.
Fixes e307a8174bb8 (qapi: provide a friendly string representation of QAPI classes)
Signed-off-by Markus Armbruster <[email protected]>
--- scripts/qapi/schema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/qapi/schema.py +2 -1
@@ -76,7 +76,8 @@ def __init__(self, name: str, info, doc, ifcond=None, features=None): def __repr__(self): if self.name is None: return "<%s at 0x%x>" % (type(self).__name__, id(self)) - return "<%s:%s at 0x%x>" % type(self).__name__, self.name, id(self) + return "<%s:%s at 0x%x>" % (type(self).__name__, self.name, + id(self)) def c_name(self): return c_name(self.name)
Signature · 1 line
2.41.0
Quoted 7 lines · Markus Armbruster
I messed it up on merge. It's a debugging aid, so no impact on build.
Fixes e307a8174bb8 (qapi: provide a friendly string representation of QAPI classes)Signed-off-by Markus Armbruster <[email protected]>--- scripts/qapi/schema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by Daniel P. Berrangé <[email protected]>
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 7 lines · Markus Armbruster
I messed it up on merge. It's a debugging aid, so no impact on build.
Fixes e307a8174bb8 (qapi: provide a friendly string representation of QAPI classes)Signed-off-by Markus Armbruster <[email protected]>--- scripts/qapi/schema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>