svn commit: r248481 - head/sys/dev/fdt

Aleksandr Rybalko ray at FreeBSD.org
Mon Mar 18 23:38:16 UTC 2013


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;


More information about the svn-src-all mailing list