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/sh | |
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/sh')
-rw-r--r-- | sys/arch/sh/sh/sh_machdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sh/sh/sh_machdep.c b/sys/arch/sh/sh/sh_machdep.c index 2e0047fb45e..9d2b3a33dbd 100644 --- a/sys/arch/sh/sh/sh_machdep.c +++ b/sys/arch/sh/sh/sh_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sh_machdep.c,v 1.22 2008/12/30 05:33:17 miod Exp $ */ +/* $OpenBSD: sh_machdep.c,v 1.23 2009/02/04 17:19:17 miod Exp $ */ /* $NetBSD: sh3_machdep.c,v 1.59 2006/03/04 01:13:36 uwe Exp $ */ /* @@ -279,7 +279,8 @@ sh_startup() sh_vector_interrupt_end - sh_vector_interrupt); #endif /* DEBUG */ - printf("real mem = %u (%uK)\n", ptoa(physmem), ptoa(physmem) / 1024); + printf("real mem = %u (%uMB)\n", ptoa(physmem), + ptoa(physmem) / 1024 / 1024); /* * Find out how much space we need, allocate it, @@ -325,8 +326,8 @@ sh_startup() */ bufinit(); - printf("avail mem = %u (%uK)\n", ptoa(uvmexp.free), - ptoa(uvmexp.free) / 1024); + printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free) / 1024 / 1024); if (boothowto & RB_CONFIG) { #ifdef BOOT_CONFIG |