Commit Diff


commit - 8dfe8c9325f7a126011f97209ba797b1ef5dd171
commit + d93ecda35199ac5c5845e1d5daecba71878a9529
blob - d4ab67d6da86298bc692c0f69a87e9b2ddca2d55
blob + f1ffbb62cadde2b143d95d3698acd89148a78b33
--- memtrace_calliope_trns.py
+++ memtrace_calliope_trns.py
@@ -145,7 +145,7 @@ class CalliopeDebugTransform(Transform):
             blocks = re.findall("[%*]+|[.]+", mem)
             for b in blocks:
                 if len(b) > 4 and b[0] == '.':
-                    out += "%08x %d bytes\r\n" % (self.heap_start + addr, len(b))
+                    out += "%08x %d bytes\r\n" % (self.heap_start + addr, len(b)-4)
                 addr += len(b)
 
             return out