Changeset 44b1674 in mainline for uspace/drv/usbhub
- Timestamp:
- 2011-04-18T21:48:55Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9014dcd
- Parents:
- 618f9ed (diff), 84a04dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/drv/usbhub
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/ports.c
r618f9ed r44b1674 83 83 void usb_hub_process_interrupt(usb_hub_info_t * hub, 84 84 uint16_t port) { 85 usb_log_debug("interrupt at port % d\n",port);85 usb_log_debug("interrupt at port %zu\n", (size_t) 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 port, str_error(opResult));95 (size_t) 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", port, 102 usb_log_debug("Connection change on port %zu: %s.\n", 103 (size_t) port, 103 104 device_connected ? "device attached" : "device removed"); 104 105 … … 109 110 usb_log_error( 110 111 "Cannot handle change on port %zu: %s.\n", 111 str_error(opResult));112 (size_t) port, str_error(opResult)); 112 113 } 113 114 } else { … … 210 211 static void usb_hub_port_reset_completed(usb_hub_info_t * hub, 211 212 uint16_t port, uint32_t status){ 212 usb_log_debug("Port %zu reset complete.\n", port);213 usb_log_debug("Port %zu reset complete.\n", (size_t) port); 213 214 if (usb_port_is_status(status, USB_HUB_FEATURE_PORT_ENABLE)) { 214 215 /* Finalize device adding. */ … … 222 223 usb_log_warning( 223 224 "Port %zu reset complete but port not enabled.\n", 224 port);225 (size_t) port); 225 226 } 226 227 } -
uspace/drv/usbhub/usbhub.c
r618f9ed r44b1674 260 260 port+1, USB_HUB_FEATURE_PORT_POWER); 261 261 if (opResult != EOK) { 262 usb_log_error("cannot power on port % d; %d\n",263 port+1, opResult);262 usb_log_error("cannot power on port %zu: %s.\n", 263 port+1, str_error(opResult)); 264 264 } 265 265 } … … 269 269 USB_HUB_FEATURE_C_HUB_LOCAL_POWER); 270 270 if (opResult != EOK) { 271 usb_log_error("cannot power hub ; %d\n",272 opResult);271 usb_log_error("cannot power hub: %s\n", 272 str_error(opResult)); 273 273 } 274 274 } … … 356 356 } 357 357 358 usb_log_info("Controlling hub `%s' (% dports).\n",358 usb_log_info("Controlling hub `%s' (%zu ports).\n", 359 359 hub_info->usb_device->ddf_dev->name, hub_info->port_count); 360 360 return EOK; … … 424 424 port, USB_HUB_FEATURE_PORT_POWER); 425 425 if (opResult != EOK) { 426 usb_log_error(" cannot power on port %d; %d\n",427 port, opResult);426 usb_log_error("Cannot power on port %zu: %s.\n", 427 port, str_error(opResult)); 428 428 } 429 429 }
Note:
See TracChangeset
for help on using the changeset viewer.
