Module Name:    src
Committed By:   matt
Date:           Mon Jan 24 22:54:01 UTC 2011

Modified Files:
        src/sys/uvm: uvm_pglist.c

Log Message:
Use the (new) KDASSERTMSG


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 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.57 src/sys/uvm/uvm_pglist.c:1.58
--- src/sys/uvm/uvm_pglist.c:1.57	Mon Jan 24 19:13:55 2011
+++ src/sys/uvm/uvm_pglist.c	Mon Jan 24 22:54:01 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pglist.c,v 1.57 2011/01/24 19:13:55 matt Exp $	*/
+/*	$NetBSD: uvm_pglist.c,v 1.58 2011/01/24 22:54:01 matt Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.57 2011/01/24 19:13:55 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.58 2011/01/24 22:54:01 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -402,14 +402,14 @@
 			pg = &ps->pgs[try - ps->start];
 			continue;
 		}
-#if defined(DEBUG) && defined(DIAGNOSTIC)
+#if defined(DEBUG)
 		{
 			int cidx = 0;
 			const int bank = vm_physseg_find(try, &cidx);
-			KASSERTMSG(bank == ps - vm_physmem,
+			KDASSERTMSG(bank == ps - vm_physmem,
 			    ("vm_physseg_find(%#x) (%d) != ps %zd",
 			     try, bank, ps - vm_physmem));
-			KASSERTMSG(cidx == try - ps->start,
+			KDASSERTMSG(cidx == try - ps->start,
 			    ("vm_physseg_find(%#x): %#x != off %"PRIxPADDR,
 			     try, cidx, try - ps->start));
 		}

Reply via email to