From a8af3746027f7a07fd97da6514871c54eb023160 Mon Sep 17 00:00:00 2001 From: dsl Date: Fri, 7 Nov 2003 11:30:39 +0000 Subject: [PATCH] Adjust location of 'extmem2' diagnostic print. --- sys/arch/i386/stand/lib/getextmemx.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/sys/arch/i386/stand/lib/getextmemx.c b/sys/arch/i386/stand/lib/getextmemx.c index 557e4c886010..c418dee0c42b 100644 --- a/sys/arch/i386/stand/lib/getextmemx.c +++ b/sys/arch/i386/stand/lib/getextmemx.c @@ -1,4 +1,4 @@ -/* $NetBSD: getextmemx.c,v 1.4 2003/04/16 15:03:59 dsl Exp $ */ +/* $NetBSD: getextmemx.c,v 1.5 2003/11/07 11:30:39 dsl Exp $ */ /* * Copyright (c) 1997, 1999 @@ -60,17 +60,19 @@ getextmemx() #endif #ifdef DEBUG_MEMSIZE - printf("extmem1: %x\n", extmem); + printf("extmem1: %xk\n", extmem); #endif - if (!getextmem2(buf) && buf[0] <= 15 * 1024) { - int help = buf[0]; - if (help == 15 * 1024) - help += buf[1] * 64; + if (!getextmem2(buf)) { #ifdef DEBUG_MEMSIZE - printf("extmem2: %x\n", help); + printf("extmem2: %xk + %xk\n", buf[0], buf[1] * 64); #endif - if (extmem < help) - extmem = help; + if (buf[0] <= 15 * 1024) { + int help = buf[0]; + if (help == 15 * 1024) + help += buf[1] * 64; + if (extmem < help) + extmem = help; + } } i = 0;