Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Use the (new) KDASSERTMSG
details: https://anonhg.NetBSD.org/src/rev/97411d20fd89
branches: trunk
changeset: 761345:97411d20fd89
user: matt <matt%NetBSD.org@localhost>
date: Mon Jan 24 22:54:01 2011 +0000
description:
Use the (new) KDASSERTMSG
diffstat:
sys/uvm/uvm_pglist.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 963c29cd7994 -r 97411d20fd89 sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c Mon Jan 24 22:53:07 2011 +0000
+++ b/sys/uvm/uvm_pglist.c Mon Jan 24 22:54:01 2011 +0000
@@ -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));
}
Home |
Main Index |
Thread Index |
Old Index