From: Markus Armbruster Date: Tue, 24 Oct 2023 10:48:41 +0000 (+0200) Subject: qapi: Fix QAPISchemaEntity.__repr__() X-Git-Tag: v8.2.0-rc0~7^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d133eef98bed96ea11c73ad3cd15f21815da993;p=thirdparty%2Fqemu.git 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 Message-ID: <20231024104841.1569250-1-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé --- diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py index d739e558e9e..6a836950a9a 100644 --- a/scripts/qapi/schema.py +++ b/scripts/qapi/schema.py @@ -76,7 +76,8 @@ class QAPISchemaEntity: 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)