From a617fe239eb64f76245255e2ef18ff27f8a95320 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 9 Jun 1998 18:10:03 +0000 Subject: a = a + b; --> a += b; correct printf in the vm_page_bootstrap() --- sys/vm/vm_page.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sys/vm/vm_page.c') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index cf5e97a6683..67918b3510a 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_page.c,v 1.13 1998/03/20 15:40:36 niklas Exp $ */ +/* $OpenBSD: vm_page.c,v 1.14 1998/06/09 18:10:02 mickey Exp $ */ /* $NetBSD: vm_page.c,v 1.41 1998/02/08 18:24:52 thorpej Exp $ */ #define VM_PAGE_ALLOC_MEMORY_STATS @@ -291,10 +291,8 @@ vm_page_bootstrap(startp, endp) * want to return some memory to the pool after booting. */ freepages = 0; - for (lcv = 0; lcv < vm_nphysseg; lcv++) { - freepages = freepages + - (vm_physmem[lcv].end - vm_physmem[lcv].start); - } + for (lcv = 0; lcv < vm_nphysseg; lcv++) + freepages += (vm_physmem[lcv].end - vm_physmem[lcv].start); /* * we now know we have (PAGE_SIZE * freepages) bytes of memory we can @@ -318,8 +316,8 @@ vm_page_bootstrap(startp, endp) n = vm_physmem[lcv].end - vm_physmem[lcv].start; if (n > pagecount) { - printf("vm_init: lost %d page(s) in init\n", - n - pagecount); + printf("vm_page_bootstrap: lost %d page(s) in init\n", + n - pagecount); vm_page_lost_count += (n - pagecount); n = pagecount; } -- cgit v1.2.3