diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2008-05-02 11:25:17 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2008-05-02 11:25:17 +0000 |
commit | 56adc358fd23a1b1d9e331ca63f773aca1ec0953 (patch) | |
tree | c3faac2220f774746ab23f1dc100397827255c52 /memcheck/mc_main.c | |
parent | 7ce7166aeae2d8401f2b3b1f9e6f60be9ae9dd72 (diff) |
Minor cleanups:
* remove 'extern' in all the headers, as that is irrelevant and wastes
horizontal space
* fix some 64-bit uncleanness in client(-defined) block handling
* remove unneeded #includes
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7987 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'memcheck/mc_main.c')
-rw-r--r-- | memcheck/mc_main.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index a89d3c49..aca15fb4 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -43,8 +43,6 @@ #include "pub_tool_replacemalloc.h" #include "pub_tool_tooliface.h" #include "pub_tool_threadstate.h" -#include "pub_tool_oset.h" -#include "pub_tool_debuginfo.h" // VG_(get_dataname_and_offset) #include "mc_include.h" #include "memcheck.h" /* for client requests */ @@ -4500,15 +4498,15 @@ static void mc_print_debug_usage(void) /* type CGenBlock is defined in mc_include.h */ /* This subsystem is self-initialising. */ -static UInt cgb_size = 0; -static UInt cgb_used = 0; +static UWord cgb_size = 0; +static UWord cgb_used = 0; static CGenBlock* cgbs = NULL; /* Stats for this subsystem. */ -static UInt cgb_used_MAX = 0; /* Max in use. */ -static UInt cgb_allocs = 0; /* Number of allocs. */ -static UInt cgb_discards = 0; /* Number of discards. */ -static UInt cgb_search = 0; /* Number of searches. */ +static ULong cgb_used_MAX = 0; /* Max in use. */ +static ULong cgb_allocs = 0; /* Number of allocs. */ +static ULong cgb_discards = 0; /* Number of discards. */ +static ULong cgb_search = 0; /* Number of searches. */ /* Get access to the client block array. */ @@ -4523,7 +4521,7 @@ void MC_(get_ClientBlock_array)( /*OUT*/CGenBlock** blocks, static Int alloc_client_block ( void ) { - UInt i, sz_new; + UWord i, sz_new; CGenBlock* cgbs_new; cgb_allocs++; @@ -4563,7 +4561,7 @@ Int alloc_client_block ( void ) static void show_client_block_stats ( void ) { VG_(message)(Vg_DebugMsg, - "general CBs: %d allocs, %d discards, %d maxinuse, %d search", + "general CBs: %llu allocs, %llu discards, %llu maxinuse, %llu search", cgb_allocs, cgb_discards, cgb_used_MAX, cgb_search ); } |