summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-08-26 18:54:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-08-26 18:54:38 +0000
commitc1a31c583e725ee4ba8330b74991cb89cc19a6ef (patch)
treeb37510686b102ec79c53018d37095a49a4fb13dd /sys
parenta3e20b36b9847f73be0cd61e35d742281ad46567 (diff)
Use ptoa((psize_t)...) and %lu to print memory size.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/machdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index 1ac80c8e823..e37a9b647ef 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.60 2007/08/02 16:40:27 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.61 2007/08/26 18:54:37 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
@@ -295,8 +295,8 @@ cpu_startup(void)
printf("%s", version);
- printf("real mem = %u (%uMB)\n", ctob(physmem),
- ctob(physmem)/1024/1024);
+ printf("real mem = %lu (%luMB)\n", ptoa((psize_t)physmem),
+ ptoa((psize_t)physmem)/1024/1024);
if (physmem >= btoc(1ULL << 32)) {
extern int amdgart_enable;
@@ -331,8 +331,8 @@ cpu_startup(void)
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
VM_PHYS_SIZE, 0, FALSE, NULL);
- printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free),
- ptoa(uvmexp.free)/1024/1024);
+ printf("avail mem = %lu (%luMB)\n", ptoa((psize_t)uvmexp.free),
+ ptoa((psize_t)uvmexp.free)/1024/1024);
bufinit();