From: Ben Gras Date: Fri, 21 Oct 2005 19:37:31 +0000 (+0000) Subject: Optionalize memory and vm verbose prints X-Git-Tag: v3.1.2a~552 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=7104974cb549007a17cc587eb2351611f66a9237;p=minix.git Optionalize memory and vm verbose prints --- diff --git a/servers/pm/alloc.c b/servers/pm/alloc.c index a40cac280..7f0bdbf1a 100644 --- a/servers/pm/alloc.c +++ b/servers/pm/alloc.c @@ -235,8 +235,6 @@ phys_clicks *free; /* memory size summaries */ *free = 0; for (i=NR_MEMS-1; i>=0; i--) { if (chunks[i].size > 0) { - printf("mem_init: adding (clicks) 0x%x @ 0x%x\n", - chunks[i].size, chunks[i].base); free_mem(chunks[i].base, chunks[i].size); *free += chunks[i].size; #if ENABLE_SWAP diff --git a/servers/pm/main.c b/servers/pm/main.c index b71b33c3f..476607f4c 100644 --- a/servers/pm/main.c +++ b/servers/pm/main.c @@ -418,7 +418,9 @@ struct memory mem_chunks[NR_MEMS]; } high <<= CLICK_SHIFT; +#if VERBOSE_VM printf("do_x86_vm: found high 0x%x\n", high); +#endif /* The number of pages we need is one for the page directory, enough * page tables to cover the memory, and one page for alignement. @@ -427,9 +429,11 @@ struct memory mem_chunks[NR_MEMS]; bytes= pages*PAGE_SIZE; clicks= (bytes + CLICK_SIZE-1) >> CLICK_SHIFT; +#if VERBOSE_VM printf("do_x86_vm: need %d pages\n", pages); printf("do_x86_vm: need %d bytes\n", bytes); printf("do_x86_vm: need %d clicks\n", clicks); +#endif for (i= 0; i