diff options
| author | oster <oster@NetBSD.org> | 2002-01-07 02:27:42 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2002-01-07 02:27:42 +0000 |
| commit | 345de5b80a4a4f843070fe9ed7941b1eb080c693 (patch) | |
| tree | 51239949921cb390db4f9522e01a64d78147429c /sys/dev/raidframe/rf_map.c | |
| parent | af9b7112ab3d93d62078bf4df697c21f6d043469 (diff) | |
Some of this stuff is really just for debugging, so compile it only if
DEBUG is defined.
Diffstat (limited to 'sys/dev/raidframe/rf_map.c')
| -rw-r--r-- | sys/dev/raidframe/rf_map.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_map.c b/sys/dev/raidframe/rf_map.c index 142a967fd25..62e8ebdbe6e 100644 --- a/sys/dev/raidframe/rf_map.c +++ b/sys/dev/raidframe/rf_map.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_map.c,v 1.9 2001/11/13 07:11:14 lukem Exp $ */ +/* $NetBSD: rf_map.c,v 1.10 2002/01/07 02:27:42 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -33,7 +33,7 @@ **************************************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.9 2001/11/13 07:11:14 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.10 2002/01/07 02:27:42 oster Exp $"); #include <dev/raidframe/raidframevar.h> @@ -701,9 +701,12 @@ void rf_PrintAccessStripeMap(asm_h) RF_AccessStripeMapHeader_t *asm_h; { +#if DEBUG rf_PrintFullAccessStripeMap(asm_h, 0); +#endif } +#if DEBUG void rf_PrintFullAccessStripeMap(asm_h, prbuf) RF_AccessStripeMapHeader_t *asm_h; @@ -903,3 +906,4 @@ rf_ASMCheckStatus( rf_RaidAddressToStripeUnitID(&raidPtr->Layout, pda_p->raidAddress + pda_p->numSector - 1)); RF_ASSERT(pda_p->col != -1); } +#endif /* DEBUG */ |
