From dbbfab5e7b11db81506049014980efe4ba0d5f3d Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Tue, 4 Sep 2012 12:43:43 +0200 Subject: [PATCH] 64bit fix for region dump --- base/src/core/dump_alloc.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/core/dump_alloc.cc b/base/src/core/dump_alloc.cc index 0c4deb0f1..0148f6b11 100644 --- a/base/src/core/dump_alloc.cc +++ b/base/src/core/dump_alloc.cc @@ -27,8 +27,8 @@ void Allocator_avl_base::Block::dump() void Allocator_avl_base::dump_addr_tree(Block *addr_node) { bool top = false; - static unsigned mem_size; - static unsigned mem_avail; + static unsigned long mem_size; + static unsigned long mem_avail; if (addr_node == 0) { addr_node = _addr_tree.first(); @@ -52,7 +52,7 @@ void Allocator_avl_base::dump_addr_tree(Block *addr_node) dump_addr_tree(addr_node->child(1)); if (top) - printf(" => mem_size=%u (%u MB) / mem_avail=%u (%u MB)\n", + printf(" => mem_size=%lu (%lu MB) / mem_avail=%lu (%lu MB)\n", mem_size, mem_size / 1024 / 1024, mem_avail, mem_avail / 1024 / 1024); }