Hide "no default resources for" warning under bootverbose. It's ok to use

optional resources.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Aleksandr Rybalko 2013-03-18 23:38:15 +00:00
parent 2737a5a925
commit 089dfb09f1

View File

@ -251,8 +251,9 @@ simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid,
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;