Changes in uspace/drv/usbhub/usbhub.c [618f9ed:4125b7d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r618f9ed r4125b7d 105 105 } 106 106 107 //usb_pipe_start_session(hub_info->control_pipe); 107 108 //set hub configuration 108 109 opResult = usb_hub_set_configuration(hub_info); … … 121 122 return opResult; 122 123 } 124 //usb_pipe_end_session(hub_info->control_pipe); 125 123 126 124 127 usb_log_debug("Creating 'hub' function in DDF.\n"); … … 215 218 // get hub descriptor 216 219 usb_log_debug("creating serialized descriptor\n"); 220 //void * serialized_descriptor = malloc(USB_HUB_MAX_DESCRIPTOR_SIZE); 217 221 uint8_t serialized_descriptor[USB_HUB_MAX_DESCRIPTOR_SIZE]; 218 222 usb_hub_descriptor_t * descriptor; … … 260 264 port+1, USB_HUB_FEATURE_PORT_POWER); 261 265 if (opResult != EOK) { 262 usb_log_error("cannot power on port % d; %d\n",263 port+1, opResult);266 usb_log_error("cannot power on port %zu: %s.\n", 267 port+1, str_error(opResult)); 264 268 } 265 269 } … … 269 273 USB_HUB_FEATURE_C_HUB_LOCAL_POWER); 270 274 if (opResult != EOK) { 271 usb_log_error("cannot power hub ; %d\n",272 opResult);275 usb_log_error("cannot power hub: %s\n", 276 str_error(opResult)); 273 277 } 274 278 } … … 277 281 } 278 282 usb_log_debug2("freeing data\n"); 283 //free(serialized_descriptor); 284 //free(descriptor->devices_removable); 279 285 free(descriptor); 280 286 return EOK; … … 356 362 } 357 363 358 usb_log_info("Controlling hub `%s' (% dports).\n",364 usb_log_info("Controlling hub `%s' (%zu ports).\n", 359 365 hub_info->usb_device->ddf_dev->name, hub_info->port_count); 360 366 return EOK; … … 424 430 port, USB_HUB_FEATURE_PORT_POWER); 425 431 if (opResult != EOK) { 426 usb_log_error(" cannot power on port %d; %d\n",427 port, opResult);432 usb_log_error("Cannot power on port %zu: %s.\n", 433 port, str_error(opResult)); 428 434 } 429 435 }
Note:
See TracChangeset
for help on using the changeset viewer.