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/macppc | |
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/macppc')
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 40b765da52e..1dde4fb97e9 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.89 2007/03/20 20:59:54 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.90 2007/05/23 20:33:46 pvalchev Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -497,7 +497,8 @@ cpu_startup() printf("%s", version); - printf("real mem = %d (%dK)\n", ctob(physmem), ctob(physmem)/1024); + printf("real mem = %u (%uMB)\n", ctob(physmem), + ctob(physmem)/1024/1024); /* * Find out how much space we need, allocate it, @@ -563,8 +564,8 @@ cpu_startup() VM_PHYS_SIZE, 0, FALSE, NULL); ppc_malloc_ok = 1; - printf("avail mem = %ld (%ldK)\n", ptoa(uvmexp.free), - ptoa(uvmexp.free) / 1024); + printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free) / 1024 / 1024); printf("using %u buffers containing %u bytes (%uK) of memory\n", nbuf, bufpages * PAGE_SIZE, bufpages * PAGE_SIZE / 1024); |