Changes in uspace/drv/usbhub/ports.c [361fcec:46e078a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/ports.c
r361fcec r46e078a 83 83 void usb_hub_process_interrupt(usb_hub_info_t * hub, 84 84 uint16_t port) { 85 usb_log_debug("interrupt at port % zu\n", (size_t)port);85 usb_log_debug("interrupt at port %d\n", port); 86 86 //determine type of change 87 87 //usb_pipe_t *pipe = hub->control_pipe; … … 93 93 if (opResult != EOK) { 94 94 usb_log_error("Failed to get port %zu status: %s.\n", 95 (size_t)port, str_error(opResult));95 port, str_error(opResult)); 96 96 return; 97 97 } … … 100 100 bool device_connected = usb_port_is_status(status, 101 101 USB_HUB_FEATURE_PORT_CONNECTION); 102 usb_log_debug("Connection change on port %zu: %s.\n", 103 (size_t) port, 102 usb_log_debug("Connection change on port %zu: %s.\n", port, 104 103 device_connected ? "device attached" : "device removed"); 105 104 … … 110 109 usb_log_error( 111 110 "Cannot handle change on port %zu: %s.\n", 112 (size_t) port,str_error(opResult));111 str_error(opResult)); 113 112 } 114 113 } else { … … 167 166 168 167 //close address 168 //if (hub->attached_devs[port].address != 0) { 169 169 if(hub->ports[port].attached_device.address >= 0){ 170 170 /*uncomment this code to use it when DDF allows device removal … … 181 181 */ 182 182 } else { 183 // TODO: is this really reason to print a warning? 183 184 usb_log_warning("Device removed before being registered.\n"); 184 185 … … 209 210 static void usb_hub_port_reset_completed(usb_hub_info_t * hub, 210 211 uint16_t port, uint32_t status){ 211 usb_log_debug("Port %zu reset complete.\n", (size_t)port);212 usb_log_debug("Port %zu reset complete.\n", port); 212 213 if (usb_port_is_status(status, USB_HUB_FEATURE_PORT_ENABLE)) { 213 214 /* Finalize device adding. */ … … 221 222 usb_log_warning( 222 223 "Port %zu reset complete but port not enabled.\n", 223 (size_t)port);224 port); 224 225 } 225 226 }
Note:
See TracChangeset
for help on using the changeset viewer.