diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2007-05-23 20:33:48 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2007-05-23 20:33:48 +0000 |
commit | a1c89e25c5c346f99dc51b78682349788f845846 (patch) | |
tree | 2dc182bdfb2d42eb1fa7ff2e40c8f70b24e5e63d /sys/arch/arm | |
parent | 25f0a82c2a3f761cc8804e53e0deb876ba827cc5 (diff) |
Print real/available memory in MB as well as bytes in dmesg, and unify
architectures to print it the same way.
ok henning, miod; i386 part from tom
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/arm32_machdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/arm/arm/arm32_machdep.c b/sys/arch/arm/arm/arm32_machdep.c index 0a0f4992ce4..ce628cccc41 100644 --- a/sys/arch/arm/arm/arm32_machdep.c +++ b/sys/arch/arm/arm/arm32_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arm32_machdep.c,v 1.22 2006/07/12 17:29:53 miod Exp $ */ +/* $OpenBSD: arm32_machdep.c,v 1.23 2007/05/23 20:33:46 pvalchev Exp $ */ /* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */ /* @@ -312,8 +312,8 @@ cpu_startup() */ printf(version); - printf("real mem = %u (%uK) %uMB\n", ctob(physmem), - ctob(physmem)/1024, ctob(physmem)/1024/1024); + printf("real mem = %u (%uMB)\n", ctob(physmem), + ctob(physmem)/1024/1024); /* * Find out how much space we need, allocate it, @@ -390,8 +390,8 @@ cpu_startup() */ bufinit(); - printf("avail mem = %lu (%uK)\n", ptoa(uvmexp.free), - ptoa(uvmexp.free)/1024); + printf("avail mem = %lu (%uMB)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free)/1024/1024); printf("using %d buffers containing %u bytes (%uK) of memory\n", nbuf, bufpages * PAGE_SIZE, bufpages * PAGE_SIZE / 1024); |