Module Name: src Committed By: he Date: Sun Jan 23 21:29:52 UTC 2011
Modified Files: src/sys/uvm: uvm_pglist.c Log Message: DEBUG does not imply DIAGNOSTIC; make sure we have a non-null KASSERTMSG implementation (DIAGNOSTIC) so that the variable inside the DEBUG section gets used. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 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.55 src/sys/uvm/uvm_pglist.c:1.56 --- src/sys/uvm/uvm_pglist.c:1.55 Sat Jan 22 01:36:27 2011 +++ src/sys/uvm/uvm_pglist.c Sun Jan 23 21:29:52 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_pglist.c,v 1.55 2011/01/22 01:36:27 matt Exp $ */ +/* $NetBSD: uvm_pglist.c,v 1.56 2011/01/23 21:29:52 he 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.55 2011/01/22 01:36:27 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.56 2011/01/23 21:29:52 he Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -390,7 +390,7 @@ pg = &ps->pgs[try - ps->start]; continue; } -#ifdef DEBUG +#if defined(DEBUG) && defined(DIAGNOSTIC) { int cidx = 0; const int bank = vm_physseg_find(try, &cidx);