X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/eee3565979933af707c711411001ba11fe406a3c..813fb2f63a553c957e917ede5f119b021d6ce391:/tools/lldbmacros/ioreg.py diff --git a/tools/lldbmacros/ioreg.py b/tools/lldbmacros/ioreg.py index 4a771880d..a97b1d96d 100644 --- a/tools/lldbmacros/ioreg.py +++ b/tools/lldbmacros/ioreg.py @@ -40,7 +40,7 @@ def GetObjectSummary(obj): vtype_str = "" if hasattr(obj, 'retainCount'): retCount = (obj.retainCount & 0xffff) - cntnrRetCount = (retCount >> 16) + cntnrRetCount = (obj.retainCount >> 16) out_string = "`object 0x{0: <16x}, vt 0x{1: <16x}{2:s}, retain count {3:d}, container retain {4:d}` ".format(obj, vt, vtype_str, retCount, cntnrRetCount) else: out_string = "`object 0x{0: <16x}, vt 0x{1: <16x}{2:s}` ".format(obj, vt, vtype_str)