Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jul 2020 17:14:45 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363015 - head/sys/dev/extres/syscon
Message-ID:  <202007081714.068HEjkK094098@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Wed Jul  8 17:14:44 2020
New Revision: 363015
URL: https://svnweb.freebsd.org/changeset/base/363015

Log:
  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

Modified:
  head/sys/dev/extres/syscon/syscon_generic.c

Modified: head/sys/dev/extres/syscon/syscon_generic.c
==============================================================================
--- head/sys/dev/extres/syscon/syscon_generic.c	Wed Jul  8 17:12:12 2020	(r363014)
+++ head/sys/dev/extres/syscon/syscon_generic.c	Wed Jul  8 17:14:44 2020	(r363015)
@@ -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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007081714.068HEjkK094098>