diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-09-12 05:28:43 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-09-12 05:28:43 +0000 |
commit | 07e8f9f442a133d2aba1c20e52602b4e4f15c864 (patch) | |
tree | abfae2a7942a9e6f67995fc7ffabd31565554854 /sys/arch | |
parent | 670a4bfdf414520bcf0737317a9a69c2a5b7948b (diff) |
Print avail/real memory sizes in KB in addition to bytes as in i386 land. ok drahn
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index bbdeb5e1ced..b41cfd7e0ee 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.3 2001/09/12 00:23:33 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.4 2001/09/12 05:28:42 pvalchev Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -513,7 +513,7 @@ cpu_startup() printf("%s", version); - printf("real mem = %d\n", ctob(physmem)); + printf("real mem = %d (%dK)\n", ctob(physmem), ctob(physmem)/1024); /* * Find out how much space we need, allocate it, @@ -581,7 +581,8 @@ cpu_startup() mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, VM_MBUF_SIZE, VM_MAP_INTRSAFE, FALSE, NULL); - printf("avail mem = %d\n", ptoa(uvmexp.free)); + printf("avail mem = %d (%dK)\n", ptoa(uvmexp.free), + ptoa(uvmexp.free)/1024); printf("using %d buffers containing %d bytes of memory\n", nbuf, bufpages * PAGE_SIZE); |