svn commit: r244753 - projects/efika_mx/sys/dev/fdt

Aleksandr Rybalko ray at FreeBSD.org
Thu Dec 27 21:30:11 UTC 2012


Author: ray
Date: Thu Dec 27 21:30:10 2012
New Revision: 244753
URL: http://svnweb.freebsd.org/changeset/base/244753

Log:
  Cover with bootverbose only message, but not return on no resource.
  
  Pointed by:	gavin

Modified:
  projects/efika_mx/sys/dev/fdt/simplebus.c

Modified: projects/efika_mx/sys/dev/fdt/simplebus.c
==============================================================================
--- projects/efika_mx/sys/dev/fdt/simplebus.c	Thu Dec 27 21:26:08 2012	(r244752)
+++ projects/efika_mx/sys/dev/fdt/simplebus.c	Thu Dec 27 21:30:10 2012	(r244753)
@@ -256,9 +256,10 @@ simplebus_alloc_resource(device_t bus, d
 			type = SYS_RES_MEMORY;
 
 		rle = resource_list_find(&di->di_res, type, *rid);
-		if (rle == NULL && bootverbose) {
-			device_printf(bus, "no default resources for "
-			    "rid = %d, type = %d\n", *rid, type);
+		if (rle == NULL) {
+			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-projects mailing list