diff options
author | marius <marius@FreeBSD.org> | 2014-06-10 08:20:00 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2014-06-10 08:20:00 +0000 |
commit | 0a5ab649fa361cd564e01adcf2415f9351ed4a18 (patch) | |
tree | d4a603a6e3fd71a703cd1cbe920982f311710752 /sys/dev/usb/controller/usb_controller.c | |
parent | 3dfc27cb0018700a420b22bc889a2694686295e9 (diff) | |
download | FreeBSD-src-0a5ab649fa361cd564e01adcf2415f9351ed4a18.zip FreeBSD-src-0a5ab649fa361cd564e01adcf2415f9351ed4a18.tar.gz |
Avoid the USB device disconnected and controller shutdown clutter on system
shutdown by putting the former under !rebooting and turning the latter into
debug messages.
Reviewed by: hps
MFC after: 1 week
Sponsored by: Bally Wulff Games & Entertainment GmbH
Diffstat (limited to 'sys/dev/usb/controller/usb_controller.c')
-rw-r--r-- | sys/dev/usb/controller/usb_controller.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index 6df5430..c2cafec 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -333,7 +333,7 @@ usb_shutdown(device_t dev) return (0); } - device_printf(bus->bdev, "Controller shutdown\n"); + DPRINTF("%s: Controller shutdown\n", device_get_nameunit(bus->bdev)); USB_BUS_LOCK(bus); usb_proc_msignal(USB_BUS_EXPLORE_PROC(bus), @@ -345,7 +345,8 @@ usb_shutdown(device_t dev) } USB_BUS_UNLOCK(bus); - device_printf(bus->bdev, "Controller shutdown complete\n"); + DPRINTF("%s: Controller shutdown complete\n", + device_get_nameunit(bus->bdev)); return (0); } |