summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_diskslice.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-04-24 06:04:36 +0000
committerbde <bde@FreeBSD.org>1995-04-24 06:04:36 +0000
commit1c2d6a2544cf3f8530c315c4af0a7f340db6c3f5 (patch)
tree2337e6bf28be177a8831c2a93807c2d290543f2b /sys/kern/subr_diskslice.c
parent28d3577e2f50526584c26e7a50f4861cb266531b (diff)
downloadFreeBSD-src-1c2d6a2544cf3f8530c315c4af0a7f340db6c3f5.zip
FreeBSD-src-1c2d6a2544cf3f8530c315c4af0a7f340db6c3f5.tar.gz
Make bad144 debugging code conditional on ds_debug.
Diffstat (limited to 'sys/kern/subr_diskslice.c')
-rw-r--r--sys/kern/subr_diskslice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index b621bcf..eae044b 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -43,7 +43,7 @@
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
- * $Id: subr_diskslice.c,v 1.7 1995/02/22 21:51:53 bde Exp $
+ * $Id: subr_diskslice.c,v 1.8 1995/03/04 11:42:27 bde Exp $
*/
#include <sys/param.h>
@@ -119,7 +119,7 @@ if (labelsect != 0) Debugger("labelsect != 0 in dscheck()");
pp = &lp->d_partitions[dkpart(bp->b_dev)];
blkno = pp->p_offset + bp->b_blkno;
maxsz = pp->p_size;
- if (sp->ds_bad != NULL) {
+ if (sp->ds_bad != NULL && ds_debug) {
daddr_t newblkno;
newblkno = transbad144(sp->ds_bad, blkno);
OpenPOWER on IntegriCloud