Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm DEBUG does not imply DIAGNOSTIC; make sure we have a...



details:   https://anonhg.NetBSD.org/src/rev/9158df1c72f1
branches:  trunk
changeset: 761319:9158df1c72f1
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 21:29:52 2011 +0000

description:
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.

diffstat:

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

diffs (27 lines):

diff -r a64fcce80762 -r 9158df1c72f1 sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c      Sun Jan 23 18:13:42 2011 +0000
+++ b/sys/uvm/uvm_pglist.c      Sun Jan 23 21:29:52 2011 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index