Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2012 21:30:11 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r244753 - projects/efika_mx/sys/dev/fdt
Message-ID:  <201212272130.qBRLUBUd060772@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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