Changes in uspace/drv/usbhub/usbhub.c [fbefd0e:4d0c40b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
rfbefd0e r4d0c40b 132 132 return opResult; 133 133 } 134 usb_log_ debug("setting port count to %d\n",descriptor->ports_count);134 usb_log_info("setting port count to %d\n",descriptor->ports_count); 135 135 hub_info->port_count = descriptor->ports_count; 136 136 hub_info->attached_devs = (usb_hc_attached_device_t*) … … 159 159 usb_standard_device_descriptor_t *std_descriptor 160 160 = &hub_info->usb_device->descriptors.device; 161 usb_log_ debug("hub has %d configurations\n",161 usb_log_info("hub has %d configurations\n", 162 162 std_descriptor->configuration_count); 163 163 if(std_descriptor->configuration_count<1){ 164 usb_log_error("THERE ARE NO CONFIGURATIONS AVAILABLE\n"); 165 //shouldn`t I return? 166 //definitely 164 usb_log_error("there are no configurations available\n"); 167 165 return EINVAL; 168 166 } … … 290 288 //if this hub already uses default address, it cannot request it once more 291 289 if(hub->is_default_address_used) return; 292 usb_log_ debug("some connection changed\n");290 usb_log_info("some connection changed\n"); 293 291 assert(hub->control_pipe->hc_phone); 294 292 int opResult = usb_hub_clear_port_feature(hub->control_pipe, … … 333 331 334 332 int opResult; 335 usb_log_ debug("finalizing add device\n");333 usb_log_info("finalizing add device\n"); 336 334 opResult = usb_hub_clear_port_feature(hub->control_pipe, 337 335 port, USB_HUB_FEATURE_C_PORT_RESET); … … 365 363 return; 366 364 } 367 usb_log_ debug("setting new address %d\n",new_device_address);365 usb_log_info("setting new address %d\n",new_device_address); 368 366 //opResult = usb_drv_req_set_address(hc, USB_ADDRESS_DEFAULT, 369 367 // new_device_address); … … 405 403 return; 406 404 } 407 usb_log_info("Detected new device on `%s' (port %d), " \ 408 "address %d (handle %llu).\n", 409 hub->usb_device->ddf_dev->name, (int) port, 405 usb_log_info("new device address %d, handle %zu\n", 410 406 new_device_address, child_handle); 407 411 408 } 412 409 … … 505 502 if (usb_port_connect_change(&status)) { 506 503 if (usb_port_dev_connected(&status)) { 507 usb_log_ debug("some connection changed\n");504 usb_log_info("some connection changed\n"); 508 505 usb_hub_init_add_device(hub, port, usb_port_speed(&status)); 509 506 } else { … … 517 514 usb_hub_over_current(hub,port); 518 515 }else{ 519 usb_log_ debug("over current condition was auto-resolved on port %d\n",516 usb_log_info("over current condition was auto-resolved on port %d\n", 520 517 port); 521 518 } … … 523 520 //port reset 524 521 if (usb_port_reset_completed(&status)) { 525 usb_log_ debug("port reset complete\n");522 usb_log_info("port reset complete\n"); 526 523 if (usb_port_enabled(&status)) { 527 524 usb_hub_finalize_add_device(hub, port, usb_port_speed(&status));
Note:
See TracChangeset
for help on using the changeset viewer.