diff options
author | sos <sos@FreeBSD.org> | 2002-02-26 10:38:33 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-02-26 10:38:33 +0000 |
commit | d4b125fae21d3919e51ecbc1876fd21110763966 (patch) | |
tree | f51890d6bb0fe0198a6e19e43f4675efe3fe161d /sys | |
parent | 6ec282a1def19bae35445c0c0c7b6cb7d8512303 (diff) | |
download | FreeBSD-src-d4b125fae21d3919e51ecbc1876fd21110763966.zip FreeBSD-src-d4b125fae21d3919e51ecbc1876fd21110763966.tar.gz |
Hide "bla bla exists, skipping it" behind bootverbose.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_bus.c | 8 |
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 { |