summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2006-11-30 23:01:50 +0000
committeroster <oster@NetBSD.org>2006-11-30 23:01:50 +0000
commitf654b0f228fa590c5a98223f7170acebb0eb0ac7 (patch)
treee012a64c4dbd2e424ce0a6d966a946d33bfb0d78 /sys/dev/raidframe
parentc5fe3abeefb88252ecb51d8570b29565b7642898 (diff)
Change a bunch of "#if DEBUG" to "#ifdef DEBUG".
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index 600d0360a66..4371be97d25 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.223 2006/11/30 15:12:17 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.224 2006/11/30 23:01:50 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -146,7 +146,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.223 2006/11/30 15:12:17 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.224 2006/11/30 23:01:50 oster Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -471,7 +471,7 @@ rf_buildroothack(RF_ConfigSet_t *config_sets)
}
} else {
/* The autoconfig didn't work :( */
-#if DEBUG
+#ifdef DEBUG
printf("Autoconfig failed with code %d for raid%d\n", retcode, raidID);
#endif
rf_release_all_vps(cset);
@@ -1087,7 +1087,7 @@ raidioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct lwp *l)
*/
raidid = raidPtr->raidid;
-#if DEBUG
+#ifdef DEBUG
printf("raid%d: Got component label:\n", raidid);
printf("raid%d: Version: %d\n", raidid, clabel->version);
printf("raid%d: Serial Number: %d\n", raidid, clabel->serial_number);
@@ -2644,7 +2644,7 @@ oomem:
/* Got the label. Does it look reasonable? */
if (rf_reasonable_label(clabel) &&
(clabel->partitionSize <= size)) {
-#if DEBUG
+#ifdef DEBUG
printf("Component on: %s: %llu\n",
cname, (unsigned long long)size);
rf_print_component_label(clabel);
@@ -2834,7 +2834,7 @@ rf_reasonable_label(RF_ComponentLabel_t *clabel)
}
-#if DEBUG
+#ifdef DEBUG
void
rf_print_component_label(RF_ComponentLabel_t *clabel)
{
@@ -3035,7 +3035,7 @@ rf_have_enough_components(RF_ConfigSet_t *cset)
if ((ac->clabel->column == c) &&
(ac->clabel->mod_counter == mod_counter)) {
/* it's this one... */
-#if DEBUG
+#ifdef DEBUG
printf("Found: %s at %d\n",
ac->devname,c);
#endif
@@ -3264,7 +3264,7 @@ rf_auto_config_set(RF_ConfigSet_t *cset, int *unit)
int raidID;
int retcode;
-#if DEBUG
+#ifdef DEBUG
printf("RAID autoconfigure\n");
#endif
@@ -3319,7 +3319,7 @@ rf_auto_config_set(RF_ConfigSet_t *cset, int *unit)
return(1);
}
-#if DEBUG
+#ifdef DEBUG
printf("Configuring raid%d:\n",raidID);
#endif