summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_bus.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-02-26 10:38:33 +0000
committersos <sos@FreeBSD.org>2002-02-26 10:38:33 +0000
commitd4b125fae21d3919e51ecbc1876fd21110763966 (patch)
treef51890d6bb0fe0198a6e19e43f4675efe3fe161d /sys/kern/subr_bus.c
parent6ec282a1def19bae35445c0c0c7b6cb7d8512303 (diff)
downloadFreeBSD-src-d4b125fae21d3919e51ecbc1876fd21110763966.zip
FreeBSD-src-d4b125fae21d3919e51ecbc1876fd21110763966.tar.gz
Hide "bla bla exists, skipping it" behind bootverbose.
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r--sys/kern/subr_bus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 574940c..e190f20 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -359,10 +359,10 @@ devclass_alloc_unit(devclass_t dc, int *unitp)
/* If we were given a wired unit number, check for existing device */
/* XXX imp XXX */
if (unit != -1) {
- if (unit >= 0 && unit < dc->maxunit &&
- dc->devices[unit] != NULL) {
- printf("%s: %s%d already exists; skipping it\n",
- dc->name, dc->name, *unitp);
+ if (unit >= 0 && unit < dc->maxunit && dc->devices[unit]) {
+ if (bootverbose)
+ printf("%s: %s%d already exists, skipping it\n",
+ dc->name, dc->name, *unitp);
return (EEXIST);
}
} else {
OpenPOWER on IntegriCloud