summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-06-22 08:58:17 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-06-22 08:58:17 +0000
commitcc9fa0bf6edd299d7dee02f26fe7c0c5f6f1c659 (patch)
tree950db5cdee395381a26b72700d57d927699a127e /sys/arch/i386
parent1b80afacf251e030158f8911c83fda74ecae8377 (diff)
make sure real/avail mem printfs do unsigned ariths; found by beck@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 13e707c9163..0d2550855df 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.299 2004/06/15 23:36:55 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.300 2004/06/22 08:58:16 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -403,7 +403,7 @@ cpu_startup()
/* XXX Merge with identifycpu */
old_identifycpu();
- printf("real mem = %u (%uK)\n", ctob(physmem), ctob(physmem)/1024);
+ printf("real mem = %u (%uK)\n", ctob(physmem), ctob(physmem)/1024U);
/*
* Find out how much space we need, allocate it,
@@ -435,7 +435,7 @@ cpu_startup()
VM_PHYS_SIZE, 0, FALSE, NULL);
printf("avail mem = %lu (%uK)\n", ptoa(uvmexp.free),
- ptoa(uvmexp.free)/1024);
+ ptoa(uvmexp.free)/1024U);
printf("using %d buffers containing %u bytes (%uK) of memory\n",
nbuf, bufpages * PAGE_SIZE, bufpages * PAGE_SIZE / 1024);