summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2007-02-21 07:45:02 +0000
committern_hibma <n_hibma@FreeBSD.org>2007-02-21 07:45:02 +0000
commit3d196e1a9149230cea336ae9ce43977c10128f9d (patch)
tree86b52271583c718396e791a1a048208cfdacc7da /sys/geom/geom_disk.c
parent989e3abb2c3f951b7af4cec31e3639b87eb15925 (diff)
downloadFreeBSD-src-3d196e1a9149230cea336ae9ce43977c10128f9d.zip
FreeBSD-src-3d196e1a9149230cea336ae9ce43977c10128f9d.tar.gz
Reduce the noise when plugging in (USB) mass storage devices, like a 4 port
flash card reader. Also remove an 'Opened da0 -> <random number>' which is not needed on a daily basis (available through bootverbose). Reviewed by: phk, ken MFC after: 1 week
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r--sys/geom/geom_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index 1a65d89..390cd8f 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -133,7 +133,7 @@ g_disk_access(struct g_provider *pp, int r, int w, int e)
if (dp->d_open != NULL) {
g_disk_lock_giant(dp);
error = dp->d_open(dp);
- if (error != 0)
+ if (bootverbose && error != 0)
printf("Opened disk %s -> %d\n",
pp->name, error);
g_disk_unlock_giant(dp);
OpenPOWER on IntegriCloud