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