Module Name: src
Committed By: rin
Date: Thu Feb 20 04:54:47 UTC 2020
Modified Files:
src/sys/uvm: uvm_pglist.c
Log Message:
Make this compile again with PGALLOC_VERBOSE.
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/uvm/uvm_pglist.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm_pglist.c
diff -u src/sys/uvm/uvm_pglist.c:1.79 src/sys/uvm/uvm_pglist.c:1.80
--- src/sys/uvm/uvm_pglist.c:1.79 Tue Dec 31 13:07:14 2019
+++ src/sys/uvm/uvm_pglist.c Thu Feb 20 04:54:47 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pglist.c,v 1.79 2019/12/31 13:07:14 ad Exp $ */
+/* $NetBSD: uvm_pglist.c,v 1.80 2020/02/20 04:54:47 rin Exp $ */
/*-
* Copyright (c) 1997, 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.79 2019/12/31 13:07:14 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.80 2020/02/20 04:54:47 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -118,7 +118,7 @@ uvm_pglistalloc_c_ps(uvm_physseg_t psi,
paddr_t cidx = 0; /* XXX: GCC */
#endif
#ifdef PGALLOC_VERBOSE
- printf("pgalloc: contig %d pgs from psi %zd\n", num, ps - vm_physmem);
+ printf("pgalloc: contig %d pgs from psi %d\n", num, psi);
#endif
low = atop(low);
@@ -197,8 +197,8 @@ uvm_pglistalloc_c_ps(uvm_physseg_t psi,
* Found a suitable starting page. See if the range is free.
*/
#ifdef PGALLOC_VERBOSE
- printf("%s: ps=%p candidate=%#x end=%#x skip=%#x, align=%#"PRIxPADDR,
- __func__, ps, candidateidx, end, skip, alignment);
+ printf("%s: psi=%d candidate=%#x end=%#x skip=%#x, align=%#"PRIxPADDR,
+ __func__, psi, candidateidx, end, skip, alignment);
#endif
/*
* We start at the end and work backwards since if we find a