summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe/rf_reconstruct.c
diff options
context:
space:
mode:
authortdeval <tdeval@openbsd.org>2002-08-09 15:10:20 +0000
committertdeval <tdeval@openbsd.org>2002-08-09 15:10:20 +0000
commit61feb224b50a65dc5d8618b87d59b332b2f300e0 (patch)
tree426bf0179a9035db061703b2b4267b892aaadfe3 /sys/dev/raidframe/rf_reconstruct.c
parentVarious fixes. (diff)
downloadwireguard-openbsd-61feb224b50a65dc5d8618b87d59b332b2f300e0.tar.xz
wireguard-openbsd-61feb224b50a65dc5d8618b87d59b332b2f300e0.zip
Remove those noisy informational messages from dmesg.
Use the option RAIDDEBUG to get these. Theo, thanks for suggesting.
Diffstat (limited to 'sys/dev/raidframe/rf_reconstruct.c')
-rw-r--r--sys/dev/raidframe/rf_reconstruct.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c
index b5cd80a7665..90a6435e1df 100644
--- a/sys/dev/raidframe/rf_reconstruct.c
+++ b/sys/dev/raidframe/rf_reconstruct.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_reconstruct.c,v 1.11 2002/03/14 01:27:02 millert Exp $ */
+/* $OpenBSD: rf_reconstruct.c,v 1.12 2002/08/09 15:10:20 tdeval Exp $ */
/* $NetBSD: rf_reconstruct.c,v 1.26 2000/06/04 02:05:13 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@@ -404,15 +404,19 @@ rf_ReconstructInPlace(raidPtr, row, col)
/* some component other than this has failed.
Let's not make things worse than they already
are... */
+#ifdef RAIDDEBUG
printf("RAIDFRAME: Unable to reconstruct to disk at:\n");
printf(" Row: %d Col: %d Too many failures.\n",
row, col);
+#endif /* RAIDDEBUG */
RF_UNLOCK_MUTEX(raidPtr->mutex);
return (EINVAL);
}
if (raidPtr->Disks[row][col].status == rf_ds_reconstructing) {
+#ifdef RAIDDEBUG
printf("RAIDFRAME: Unable to reconstruct to disk at:\n");
printf(" Row: %d Col: %d Reconstruction already occuring!\n", row, col);
+#endif /* RAIDDEBUG */
RF_UNLOCK_MUTEX(raidPtr->mutex);
return (EINVAL);