Hide "bla bla exists, skipping it" behind bootverbose.

This commit is contained in:
sos 2002-02-26 10:38:33 +00:00
parent 6ec282a1de
commit d4b125fae2

View File

@ -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 {