Changeset a1732929 in mainline for uspace/drv/bus/usb/usbhub/port.c
- Timestamp:
- 2018-01-15T17:04:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ff99e8
- Parents:
- c1a966e
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port.c
rc1a966e ra1732929 141 141 assert(port); 142 142 assert(hub); 143 usb_log_debug2("(%p-%u): Interrupt. \n", hub, port->port_number);143 usb_log_debug2("(%p-%u): Interrupt.", hub, port->port_number); 144 144 145 145 usb_port_status_t status = 0; 146 146 const int opResult = get_port_status(port, &status); 147 147 if (opResult != EOK) { 148 usb_log_error("(%p-%u): Failed to get port status: %s. \n", hub,148 usb_log_error("(%p-%u): Failed to get port status: %s.", hub, 149 149 port->port_number, str_error(opResult)); 150 150 return; … … 155 155 const bool connected = 156 156 (status & USB_HUB_PORT_STATUS_CONNECTION) != 0; 157 usb_log_debug("(%p-%u): Connection change: device %s. \n", hub,157 usb_log_debug("(%p-%u): Connection change: device %s.", hub, 158 158 port->port_number, connected ? "attached" : "removed"); 159 159 … … 189 189 if (status & USB_HUB_PORT_C_STATUS_ENABLED) { 190 190 // TODO: maybe HS reset failed? 191 usb_log_info("(%p-%u): Port disabled because of errors. \n", hub,191 usb_log_info("(%p-%u): Port disabled because of errors.", hub, 192 192 port->port_number); 193 193 usb_hub_port_device_gone(port, hub); … … 294 294 if (enabled) { 295 295 port->reset_status = RESET_OK; 296 usb_log_debug("(%p-%u): Port reset complete. \n", hub,296 usb_log_debug("(%p-%u): Port reset complete.", hub, 297 297 port->port_number); 298 298 } else {
Note:
See TracChangeset
for help on using the changeset viewer.