diff options
Diffstat (limited to 'plugins/python')
-rw-r--r-- | plugins/python/samples/basic_blocks.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/python/samples/basic_blocks.py b/plugins/python/samples/basic_blocks.py index 583723c..90f3a2c 100644 --- a/plugins/python/samples/basic_blocks.py +++ b/plugins/python/samples/basic_blocks.py @@ -43,14 +43,17 @@ def visit_block(block, order, indent): if isinstance(block, FlowBlock): start, end = block.boundary_addresses + rank = block.rank links = block.get_links_block() if links != None: laddr = get_c_address_of_pygobject(links) - print '%s- flow %s : 0x%08lx -> 0x%08lx (links = %s)' % (padding, addr, start, end, laddr) + print '%s- flow %s (rank=%d) : 0x%08lx -> 0x%08lx (links = %s)' \ + % (padding, addr, rank, start, end, laddr) else: - print '%s- flow %s : 0x%08lx -> 0x%08lx' % (padding, addr, start, end) + print '%s- flow %s (rank=%d) : 0x%08lx -> 0x%08lx' \ + % (padding, addr, rank, start, end) else: |