diff options
author | joerg <joerg@FreeBSD.org> | 2002-05-12 17:17:46 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2002-05-12 17:17:46 +0000 |
commit | 56d709773db0716db06d0019373226487f691b00 (patch) | |
tree | 4557fb81e989f36334b707bca661e2c2f999185b | |
parent | 4204167002bbf7384a93ccbd28f00f302a153e1d (diff) | |
download | FreeBSD-src-56d709773db0716db06d0019373226487f691b00.zip FreeBSD-src-56d709773db0716db06d0019373226487f691b00.tar.gz |
Hide the fd autoselection messages behind the bootverbose case so they
stop bothering people on their consoles.
-rw-r--r-- | sys/dev/fdc/fdc.c | 8 | ||||
-rw-r--r-- | sys/isa/fd.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 7f1cb27..fd838ad 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -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); } } diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 7f1cb27..fd838ad 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -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); } } |