Don't hide the failure to allocate device behind boot verbose. It is

still telling us of real problems so should remain until it stops
doing that.

Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org>
This commit is contained in:
Warner Losh 2001-11-02 17:33:06 +00:00
parent bcf8b176bb
commit 89bbe0cd1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85887

View file

@ -363,9 +363,8 @@ devclass_alloc_unit(devclass_t dc, int *unitp)
if (unit != -1) {
if (unit >= 0 && unit < dc->maxunit &&
dc->devices[unit] != NULL) {
if (bootverbose)
printf("%s-: %s%d already exists, skipping it\n",
dc->name, dc->name, *unitp);
printf("%s-: %s%d already exists, skipping it\n",
dc->name, dc->name, *unitp);
return (EEXIST);
}
} else {