Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2013 23:38:15 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248481 - head/sys/dev/fdt
Message-ID:  <201303182338.r2INcFse043059@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ray
Date: Mon Mar 18 23:38:15 2013
New Revision: 248481
URL: http://svnweb.freebsd.org/changeset/base/248481

Log:
  Hide "no default resources for" warning under bootverbose. It's ok to use
  optional resources.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/fdt/simplebus.c

Modified: head/sys/dev/fdt/simplebus.c
==============================================================================
--- head/sys/dev/fdt/simplebus.c	Mon Mar 18 23:35:01 2013	(r248480)
+++ head/sys/dev/fdt/simplebus.c	Mon Mar 18 23:38:15 2013	(r248481)
@@ -251,8 +251,9 @@ simplebus_alloc_resource(device_t bus, d
 
 		rle = resource_list_find(&di->di_res, type, *rid);
 		if (rle == NULL) {
-			device_printf(bus, "no default resources for "
-			    "rid = %d, type = %d\n", *rid, type);
+			if (bootverbose)
+				device_printf(bus, "no default resources for "
+				    "rid = %d, type = %d\n", *rid, type);
 			return (NULL);
 		}
 		start = rle->start;



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