diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-06-09 18:10:03 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-06-09 18:10:03 +0000 |
commit | a617fe239eb64f76245255e2ef18ff27f8a95320 (patch) | |
tree | 4845fb0fdf7e2845d202f1765c0cb13a60b09329 /sys/vm/vm_page.c | |
parent | 39756d56688ebd89b19b56032df6ca9ff42b0954 (diff) |
a = a + b; --> a += b;
correct printf in the vm_page_bootstrap()
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 12 |
1 files changed, 5 insertions, 7 deletions
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; } |