]> git.proxmox.com Git - mirror_qemu.git/commitdiff
scripts/decodetree.py: fix reference to attributes
authorCleber Rosa <crosa@redhat.com>
Thu, 4 Oct 2018 16:18:50 +0000 (12:18 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 31 Oct 2018 00:13:54 +0000 (21:13 -0300)
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20181004161852.11673-9-crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/decodetree.py

index 457cffea90aff462debe7e36a6fb9e46d9f8a6a6..37c76b55072e8b213abdc34a3064c4ab9348f136 100755 (executable)
@@ -298,7 +298,7 @@ class Field:
             s = 's'
         else:
             s = ''
-        return str(pos) + ':' + s + str(len)
+        return str(self.pos) + ':' + s + str(self.len)
 
     def str_extract(self):
         if self.sign: