diff options
author | imp <imp@FreeBSD.org> | 2002-10-07 23:15:40 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-10-07 23:15:40 +0000 |
commit | 9aab9af8038f0f3476064da31bca0230a6546de9 (patch) | |
tree | 38cea57f994d3165415a936d11b57b861fa0452b /sys/kern/subr_bus.c | |
parent | 7ef36b2111ac1bfe07be7e712b9823c1d5456b1d (diff) | |
download | FreeBSD-src-9aab9af8038f0f3476064da31bca0230a6546de9.zip FreeBSD-src-9aab9af8038f0f3476064da31bca0230a6546de9.tar.gz |
Two minor bugfixes:
o Allow the bus_debug variable to be set via the bus.debug tunable.
o Return pnpinfo and location info via the devinfo interface to userland.
devinfo(8) needs to be updated to print it.
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r-- | sys/kern/subr_bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 6390028..410548b 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -123,6 +123,7 @@ static MALLOC_DEFINE(M_BUS, "bus", "Bus data structures"); #ifdef BUS_DEBUG static int bus_debug = 1; +TUNABLE_INT("bus.debug", &bus_debug); SYSCTL_INT(_debug, OID_AUTO, bus_debug, CTLFLAG_RW, &bus_debug, 0, "Debug bus code"); @@ -2198,6 +2199,8 @@ sysctl_devices(SYSCTL_HANDLER_ARGS) sizeof(udev.dv_drivername)); udev.dv_pnpinfo[0] = '\0'; udev.dv_location[0] = '\0'; + bus_child_pnpinfo_str(dev, udev.dv_pnpinfo, sizeof(udev.dv_pnpinfo)); + bus_child_location_str(dev, udev.dv_location, sizeof(udev.dv_location)); udev.dv_devflags = dev->devflags; udev.dv_flags = dev->flags; udev.dv_state = dev->state; |