summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-05-03 13:58:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-05-03 13:58:12 +0000
commit3471b508ba4da21a00eb5b42d0e64dfa368d2550 (patch)
tree81762f2e830fb0531f4c8b7b676b74e2acbfde64 /sys/arch/i386/stand
parent41d54f3c757a338b66ced17516ab16b540d852fe (diff)
no guarantee that ptrdiff_t is int and not long, so cast.
ok mickey@
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r--sys/arch/i386/stand/libsa/memprobe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/memprobe.c b/sys/arch/i386/stand/libsa/memprobe.c
index ade44eccda6..e987c284262 100644
--- a/sys/arch/i386/stand/libsa/memprobe.c
+++ b/sys/arch/i386/stand/libsa/memprobe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: memprobe.c,v 1.35 2002/02/15 19:55:15 mickey Exp $ */
+/* $OpenBSD: memprobe.c,v 1.36 2002/05/03 13:58:11 espie Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
@@ -360,8 +360,9 @@ dump_biosmem(tm)
tm = bios_memmap;
for(p = tm; p->type != BIOS_MAP_END; p++) {
- printf("Region %d: type %u at 0x%x for %uKB\n", p - tm,
- p->type, (u_int)p->addr, (u_int)(p->size / 1024));
+ printf("Region %ld: type %u at 0x%x for %uKB\n",
+ (long)(p - tm), p->type, (u_int)p->addr,
+ (u_int)(p->size / 1024));
if(p->type == BIOS_MAP_FREE)
total += p->size / 1024;