From 9d2c88ab2ac3bfbbb7303b42ff9479c3ee9d75c7 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Wed, 8 Jul 2020 17:14:44 +0000 Subject: [PATCH] extres/syscon_generic: Make device quiet if not in boot verbose On some boards there is a lot of of syscon node that are unused as more specific drivers is probed before, no need to flood the console for the mostly-unused generic ones. MFC after: 1 week --- sys/dev/extres/syscon/syscon_generic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/extres/syscon/syscon_generic.c b/sys/dev/extres/syscon/syscon_generic.c index 776d877aab74..4e4bfbcace78 100644 --- a/sys/dev/extres/syscon/syscon_generic.c +++ b/sys/dev/extres/syscon/syscon_generic.c @@ -142,6 +142,9 @@ syscon_generic_probe(device_t dev) return (ENXIO); device_set_desc(dev, "syscon"); + if (!bootverbose) + device_quiet(dev); + return (BUS_PROBE_GENERIC); }