diff options
Diffstat (limited to 'sys/arch/amd64/stand/libsa/memprobe.c')
-rw-r--r-- | sys/arch/amd64/stand/libsa/memprobe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/libsa/memprobe.c b/sys/arch/amd64/stand/libsa/memprobe.c index 58543d1da6b..312fc1e6b91 100644 --- a/sys/arch/amd64/stand/libsa/memprobe.c +++ b/sys/arch/amd64/stand/libsa/memprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memprobe.c,v 1.1 2004/02/03 12:09:47 mickey Exp $ */ +/* $OpenBSD: memprobe.c,v 1.2 2005/05/03 13:02:45 tom Exp $ */ /* * Copyright (c) 1997-1999 Michael Shalayeff @@ -328,7 +328,8 @@ memprobe(void) /* Count only "good" memory chunks 12K and up in size */ if ((im->type == BIOS_MAP_FREE) && (im->size >= 12*1024)) { if (im->size > 1024 * 1024) - printf("%uM ", (u_int)im->size / (1024 * 1024)); + printf("%uM ", (u_int)(im->size / + (1024 * 1024))); else printf("%uK ", (u_int)im->size / 1024); |