summaryrefslogtreecommitdiff
path: root/tools/gdb/python/heaps.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-12 11:15:23 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-12 11:15:23 +0100
commit04a52040aef69910e9ac2218fea48077e34d4017 (patch)
treed7b623bc23ddc2765812cf406e567b4ee7c3e848 /tools/gdb/python/heaps.py
parentab922fec9c2ce403d870120b5afcc108f06f4aea (diff)
Python 3 compatibility
Diffstat (limited to 'tools/gdb/python/heaps.py')
-rw-r--r--tools/gdb/python/heaps.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/gdb/python/heaps.py b/tools/gdb/python/heaps.py
index e843f33..14238e3 100644
--- a/tools/gdb/python/heaps.py
+++ b/tools/gdb/python/heaps.py
@@ -73,9 +73,9 @@ class stats:
return self.stat['free_size']
def show(self):
- print ' Instance:',self.inst()
- print ' Avail:',self.avail()
- print ' Free:',self.free()
+ print(' Instance:',self.inst())
+ print(' Avail:',self.avail())
+ print(' Free:',self.free())
# ToDo : incorporate others
@@ -105,9 +105,9 @@ class control:
fi = self.first()
la = self.last()
- print ' First:', fi.val()
- print ' Last:', la.val()
+ print(' First:', fi.val())
+ print(' Last:', la.val())
stats = self.stat()
- print ' stats:'
+ print(' stats:')
stats.show()