Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Make this compile again with PGALLOC_VERBOSE.



details:   https://anonhg.NetBSD.org/src/rev/4eae9822329f
branches:  trunk
changeset: 744975:4eae9822329f
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Feb 20 04:54:47 2020 +0000

description:
Make this compile again with PGALLOC_VERBOSE.

diffstat:

 sys/uvm/uvm_pglist.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r eac09d805f12 -r 4eae9822329f sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c      Thu Feb 20 01:44:06 2020 +0000
+++ b/sys/uvm/uvm_pglist.c      Thu Feb 20 04:54:47 2020 +0000
@@ -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 @@
        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 @@
                 * 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



Home | Main Index | Thread Index | Old Index