scripts/decodetree.py: fix reference to attributes

Backports commit cbcdf1a951aa605c43dc80a98a8cc366299e378c from qemu
This commit is contained in:
Cleber Rosa 2018-11-11 07:33:22 -05:00 committed by Lioncash
parent 33422a04bc
commit 40a33d2542
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -300,7 +300,7 @@ class Field:
s = 's' s = 's'
else: else:
s = '' s = ''
return str(pos) + ':' + s + str(len) return str(self.pos) + ':' + s + str(self.len)
def str_extract(self): def str_extract(self):
if self.sign: if self.sign: