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/mvme88k | |
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/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index b3038827a2c..6123305b6d6 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.187 2007/05/14 17:00:40 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.188 2007/05/23 20:33:46 pvalchev Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -349,7 +349,8 @@ cpu_startup() */ printf(version); identifycpu(); - printf("real mem = %d\n", ctob(physmem)); + printf("real mem = %u (%uMB)\n", ctob(physmem), + ctob(physmem)/1024/1024); /* * Find out how much space we need, allocate it, @@ -442,7 +443,8 @@ cpu_startup() phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, VM_PHYS_SIZE, 0, FALSE, NULL); - printf("avail mem = %ld (%d pages)\n", ptoa(uvmexp.free), uvmexp.free); + printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free)/1024/1024); printf("using %d buffers containing %d bytes of memory\n", nbuf, bufpages * PAGE_SIZE); |