aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdt/simplebus.c
diff options
context:
space:
mode:
authorAleksandr Rybalko <ray@FreeBSD.org>2013-03-18 23:38:15 +0000
committerAleksandr Rybalko <ray@FreeBSD.org>2013-03-18 23:38:15 +0000
commit089dfb09f124d937403ec980793a7edf9dfd2bbd (patch)
treec6c1754ea6c537cfbfe7b860bec0f5ba310c9614 /sys/dev/fdt/simplebus.c
parent2737a5a925901c06f76e57d24ac3228b4ceff392 (diff)
downloadsrc-089dfb09f124d937403ec980793a7edf9dfd2bbd.tar.gz
src-089dfb09f124d937403ec980793a7edf9dfd2bbd.zip
Hide "no default resources for" warning under bootverbose. It's ok to use
optional resources. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=248481
Diffstat (limited to 'sys/dev/fdt/simplebus.c')
-rw-r--r--sys/dev/fdt/simplebus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c
index 48170c746196..a9ba36d99219 100644
--- a/sys/dev/fdt/simplebus.c
+++ b/sys/dev/fdt/simplebus.c
@@ -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;