diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-02-17 07:53:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-02-17 07:53:56 +0000 |
commit | 824755c93acaf1886b9079e1b958dc2c98a5625a (patch) | |
tree | 68199f7448ca709bcf4dad48e0a005fe834cdfa3 /sys/kern | |
parent | bfbbbc0d861d151d2f9cc204a5cab9705ea5924b (diff) |
ensure all pi_magic checks are inside DIAGNOSTIC
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_pool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 0c0ba8a9350..321e770938c 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.77 2009/02/16 23:48:17 deraadt Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.78 2009/02/17 07:53:55 deraadt Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -1226,6 +1226,7 @@ pool_chk_page(struct pool *pp, const char *label, struct pool_item_header *ph) pi != NULL; pi = TAILQ_NEXT(pi,pi_list), n++) { +#ifdef DIAGNOSTIC if (pi->pi_magic != PI_MAGIC) { if (label != NULL) printf("%s: ", label); @@ -1247,7 +1248,8 @@ pool_chk_page(struct pool *pp, const char *label, struct pool_item_header *ph) } } -#endif +#endif /* POOL_DEBUG */ +#endif /* DIAGNOSTIC */ page = (caddr_t)((u_long)pi & pp->pr_alloc->pa_pagemask); if (page == ph->ph_page) |