summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2009-03-14 11:08:28 +0000
committerad <ad@NetBSD.org>2009-03-14 11:08:28 +0000
commit0fa70e9b6f4307b98211c15ac867a249e12a2f92 (patch)
treec6202cbf84d9e218a76d91678752087b7e5521ce /sys/dev/raidframe
parentb33d444d81abcfe3689aa18b7092525c070b0541 (diff)
'boot -z' bogons
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index b733ab9f663..d8d53c0aebc 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.257 2009/02/28 23:11:11 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.258 2009/03/14 11:08:28 ad Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -139,7 +139,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.257 2009/02/28 23:11:11 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.258 2009/03/14 11:08:28 ad Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -342,9 +342,7 @@ raidattach(int num)
int raidID;
int i, rc;
-#ifdef DEBUG
- printf("raidattach: Asked for %d units\n", num);
-#endif
+ aprint_debug("raidattach: Asked for %d units\n", num);
if (num <= 0) {
#ifdef DIAGNOSTIC
@@ -431,9 +429,7 @@ rf_autoconfig(struct device *self)
raidautoconfig = 0;
/* 1. locate all RAID components on the system */
-#ifdef DEBUG
- printf("Searching for RAID components...\n");
-#endif
+ aprint_debug("Searching for RAID components...\n");
ac_list = rf_find_raid_components();
/* 2. Sort them into their respective sets. */
@@ -469,18 +465,14 @@ rf_buildroothack(RF_ConfigSet_t *config_sets)
cset->ac->clabel->autoconfigure==1) {
retcode = rf_auto_config_set(cset,&raidID);
if (!retcode) {
-#ifdef DEBUG
- printf("raid%d: configured ok\n", raidID);
-#endif
+ aprint_debug("raid%d: configured ok\n", raidID);
if (cset->rootable) {
rootID = raidID;
num_root++;
}
} else {
/* The autoconfig didn't work :( */
-#ifdef DEBUG
- printf("Autoconfig failed with code %d for raid%d\n", retcode, raidID);
-#endif
+ aprint_debug("Autoconfig failed with code %d for raid%d\n", retcode, raidID);
rf_release_all_vps(cset);
}
} else {
@@ -531,10 +523,8 @@ rf_buildroothack(RF_ConfigSet_t *config_sets)
if (strncmp(devname, device_xname(booted_device),
strlen(device_xname(booted_device))) != 0)
continue;
-#ifdef DEBUG
- printf("raid%d includes boot device %s\n",
+ aprint_debug("raid%d includes boot device %s\n",
raidID, devname);
-#endif
num_root++;
rootID = raidID;
}