diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-02-04 17:19:18 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-02-04 17:19:18 +0000 |
commit | ed1908a5314982e32aceafdc84e9ec3be343df48 (patch) | |
tree | 7d76c3d75fe663a47d710ed6fa0abdfa98e25700 /sys/arch/alpha | |
parent | deaef39c57e0bee6c4450718402784d5c2bbd013 (diff) |
Unify memory size reports a bit more: always report size in MB, and report
reserved memory on alpha and hppa on its own line (as done on sgi).
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index f6536464908..f2d1f09302d 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.116 2008/06/27 17:22:12 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.117 2009/02/04 17:19:16 miod Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -859,17 +859,19 @@ cpu_startup() */ printf(version); identifycpu(); - printf("total memory = %lu (%luK)\n", ptoa((psize_t)totalphysmem), - ptoa((psize_t)totalphysmem) / 1024); - printf("(%lu reserved for PROM, ", ptoa((psize_t)resvmem)); - printf("%lu used by OpenBSD)\n", ptoa((psize_t)physmem)); + printf("real mem = %lu (%luMB)\n", ptoa((psize_t)totalphysmem), + ptoa((psize_t)totalphysmem) / 1024 / 1024); + printf("rsvd mem = %lu (%luMB)\n", ptoa((psize_t)resvmem), + ptoa((psize_t)resvmem) / 1024 / 1024); if (unusedmem) { - printf("WARNING: unused memory = %lu (%luK)\n", - ptoa((psize_t)unusedmem), ptoa((psize_t)unusedmem) / 1024); + printf("WARNING: unused memory = %lu (%luMB)\n", + ptoa((psize_t)unusedmem), + ptoa((psize_t)unusedmem) / 1024 / 1024); } if (unknownmem) { - printf("WARNING: %lu (%luK) of memory with unknown purpose\n", - ptoa((psize_t)unknownmem), ptoa((psize_t)unknownmem) / 1024); + printf("WARNING: %lu (%luMB) of memory with unknown purpose\n", + ptoa((psize_t)unknownmem), + ptoa((psize_t)unknownmem) / 1024 / 1024); } /* @@ -896,8 +898,8 @@ cpu_startup() #if defined(DEBUG) pmapdebug = opmapdebug; #endif - printf("avail memory = %lu (%luK)\n", ptoa((psize_t)uvmexp.free), - ptoa((psize_t)uvmexp.free) / 1024); + printf("avail mem = %lu (%luMB)\n", ptoa((psize_t)uvmexp.free), + ptoa((psize_t)uvmexp.free) / 1024 / 1024); #if 0 { extern u_long pmap_pages_stolen; |