Hide the fd autoselection messages behind the bootverbose case so they

stop bothering people on their consoles.
This commit is contained in:
Joerg Wunsch 2002-05-12 17:17:46 +00:00
parent c75fbf36b1
commit 5613959d84
2 changed files with 10 additions and 6 deletions

View File

@ -1948,12 +1948,14 @@ fdautoselect(dev_t dev)
fd->options = oopts;
if (i == n) {
device_printf(fd->dev, "autoselection failed\n");
if (bootverbose)
device_printf(fd->dev, "autoselection failed\n");
fd->ft = 0;
return (EIO);
} else {
device_printf(fd->dev, "autoselected %d KB medium\n",
fd->ft->size / 2);
if (bootverbose)
device_printf(fd->dev, "autoselected %d KB medium\n",
fd->ft->size / 2);
return (0);
}
}

View File

@ -1948,12 +1948,14 @@ fdautoselect(dev_t dev)
fd->options = oopts;
if (i == n) {
device_printf(fd->dev, "autoselection failed\n");
if (bootverbose)
device_printf(fd->dev, "autoselection failed\n");
fd->ft = 0;
return (EIO);
} else {
device_printf(fd->dev, "autoselected %d KB medium\n",
fd->ft->size / 2);
if (bootverbose)
device_printf(fd->dev, "autoselected %d KB medium\n",
fd->ft->size / 2);
return (0);
}
}