summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_bus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 89fa143..46aac7d 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -490,7 +490,8 @@ devclass_alloc_unit(devclass_t dc, int *unitp)
device_t dev;
dev = devclass_get_device(dc, unit);
if (dev) {
- printf("devclass_alloc_unit: %s%d already exists, using next available unit number\n", dc->name, unit);
+ if (bootverbose)
+ printf("devclass_alloc_unit: %s%d already exists, using next available unit number\n", dc->name, unit);
unit = -1;
}
}
OpenPOWER on IntegriCloud