diff options
author | imp <imp@FreeBSD.org> | 2000-04-08 17:21:15 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-04-08 17:21:15 +0000 |
commit | 236c51d75812c8d1a62c2924ebedc79a2a6e3ce3 (patch) | |
tree | 2e4e4e493a9cfc1f66a69289f5c79477f1aff584 /sys | |
parent | 028e27dc430473934d800059eca2ffdb952a1970 (diff) | |
download | FreeBSD-src-236c51d75812c8d1a62c2924ebedc79a2a6e3ce3.zip FreeBSD-src-236c51d75812c8d1a62c2924ebedc79a2a6e3ce3.tar.gz |
Don't complain about not getting resources for the compatibility shim
drivers unless booted -verbose. This cleans up the boot messages
somewhat as the old messages were confusing and not helpful for most
people.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/isa/isa_compat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/isa_compat.c b/sys/i386/isa/isa_compat.c index c7617ed..6eda6eb 100644 --- a/sys/i386/isa/isa_compat.c +++ b/sys/i386/isa/isa_compat.c @@ -73,7 +73,7 @@ isa_compat_alloc_resources(device_t dev, struct isa_compat_resources *res) res->ports = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0ul, ~0ul, 1, RF_ACTIVE); - if (res->ports == NULL) + if (res->ports == NULL && bootverbose) printf("isa_compat: didn't get ports for %s\n", device_get_name(dev)); } else @@ -86,7 +86,7 @@ isa_compat_alloc_resources(device_t dev, struct isa_compat_resources *res) res->memory = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0ul, ~0ul, 1, RF_ACTIVE); - if (res->memory == NULL) + if (res->memory == NULL && bootverbose) printf("isa_compat: didn't get memory for %s\n", device_get_name(dev)); } else @@ -98,7 +98,7 @@ isa_compat_alloc_resources(device_t dev, struct isa_compat_resources *res) res->drq = bus_alloc_resource(dev, SYS_RES_DRQ, &rid, 0ul, ~0ul, 1, RF_ACTIVE); - if (res->drq == NULL) + if (res->drq == NULL && bootverbose) printf("isa_compat: didn't get drq for %s\n", device_get_name(dev)); } else @@ -110,7 +110,7 @@ isa_compat_alloc_resources(device_t dev, struct isa_compat_resources *res) res->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0ul, ~0ul, 1, RF_SHAREABLE | RF_ACTIVE); - if (res->irq == NULL) + if (res->irq == NULL && bootverbose) printf("isa_compat: didn't get irq for %s\n", device_get_name(dev)); } else |