mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-03-16 00:11:30 -04:00
Improved DataStream record format
This commit is contained in:
parent
7e0d36af7d
commit
2f3ac42153
@ -1118,12 +1118,12 @@ class DataStream(PTXFragment):
|
|||||||
if cell.texp is None:
|
if cell.texp is None:
|
||||||
print '%3d %2d --' % (cell.offset, cell.size)
|
print '%3d %2d --' % (cell.offset, cell.size)
|
||||||
continue
|
continue
|
||||||
print '%3d %2d %4s %s' % (cell.offset, cell.size,
|
s = '%3d %2d %4s' % (cell.offset, cell.size, cell.texp.type)
|
||||||
cell.texp.type,
|
vals = struct.unpack(cell.texp.type,
|
||||||
struct.unpack(cell.texp.type,
|
stream[cell.offset:cell.offset+cell.size])
|
||||||
stream[cell.offset:cell.offset+cell.size]))
|
for val, exp in zip(vals, cell.texp.exprlist):
|
||||||
for exp in cell.texp.exprlist:
|
print '%11s %-20s %s' % (s, val, exp)
|
||||||
print '%11s %s' % ('', exp)
|
s = ''
|
||||||
print '\n----\n'
|
print '\n----\n'
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
limit -= 1
|
limit -= 1
|
||||||
|
Loading…
Reference in New Issue
Block a user