summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-21 18:09:49 +0000
committermiod <miod@openbsd.org>2011-04-21 18:09:49 +0000
commit7d8e4b62a7ca1e8d1c43fc23fcd2b575aa351fae (patch)
tree8fb7a99e73e1868b44640fb61cd5472c243a02f4 /sys
parentUse 64 bit integer types to compute IP35 memory ranges, to give machines (diff)
downloadwireguard-openbsd-7d8e4b62a7ca1e8d1c43fc23fcd2b575aa351fae.tar.xz
wireguard-openbsd-7d8e4b62a7ca1e8d1c43fc23fcd2b575aa351fae.zip
Print memory sizes as longs. Stolen from sparc64.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/sgi/machdep.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index 45e1fb619e2..67b7d3736b4 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.107 2011/04/03 22:32:39 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.108 2011/04/21 18:09:49 miod Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -610,10 +610,10 @@ cpu_startup()
* Good {morning,afternoon,evening,night}.
*/
printf(version);
- printf("real mem = %u (%uMB)\n", ptoa(physmem),
- ptoa(physmem)/1024/1024);
- printf("rsvd mem = %u (%uMB)\n", ptoa(rsvdmem),
- ptoa(rsvdmem)/1024/1024);
+ printf("real mem = %lu (%luMB)\n", ptoa((psize_t)physmem),
+ ptoa((psize_t)physmem)/1024/1024);
+ printf("rsvd mem = %lu (%luMB)\n", ptoa((psize_t)rsvdmem),
+ ptoa((psize_t)rsvdmem)/1024/1024);
/*
* Allocate a submap for exec arguments. This map effectively
@@ -629,8 +629,8 @@ cpu_startup()
#ifdef PMAPDEBUG
pmapdebug = opmapdebug;
#endif
- printf("avail mem = %u (%uMB)\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);
/*
* Set up CPU-specific registers, cache, etc.