Hide the fd autoselection messages behind the bootverbose case so they
stop bothering people on their consoles.
This commit is contained in:
parent
c75fbf36b1
commit
5613959d84
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user