Changeset fbefd0e in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-03-21T18:14:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f80527, ce794342
- Parents:
- 215b001
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r215b001 rfbefd0e 132 132 return opResult; 133 133 } 134 usb_log_ info("setting port count to %d\n",descriptor->ports_count);134 usb_log_debug("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_ info("hub has %d configurations\n",161 usb_log_debug("hub has %d configurations\n", 162 162 std_descriptor->configuration_count); 163 163 if(std_descriptor->configuration_count<1){ … … 290 290 //if this hub already uses default address, it cannot request it once more 291 291 if(hub->is_default_address_used) return; 292 usb_log_ info("some connection changed\n");292 usb_log_debug("some connection changed\n"); 293 293 assert(hub->control_pipe->hc_phone); 294 294 int opResult = usb_hub_clear_port_feature(hub->control_pipe, … … 333 333 334 334 int opResult; 335 usb_log_ info("finalizing add device\n");335 usb_log_debug("finalizing add device\n"); 336 336 opResult = usb_hub_clear_port_feature(hub->control_pipe, 337 337 port, USB_HUB_FEATURE_C_PORT_RESET); … … 365 365 return; 366 366 } 367 usb_log_ info("setting new address %d\n",new_device_address);367 usb_log_debug("setting new address %d\n",new_device_address); 368 368 //opResult = usb_drv_req_set_address(hc, USB_ADDRESS_DEFAULT, 369 369 // new_device_address); … … 405 405 return; 406 406 } 407 usb_log_info("new device address %d, handle %zu\n", 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, 408 410 new_device_address, child_handle); 409 410 411 } 411 412 … … 504 505 if (usb_port_connect_change(&status)) { 505 506 if (usb_port_dev_connected(&status)) { 506 usb_log_ info("some connection changed\n");507 usb_log_debug("some connection changed\n"); 507 508 usb_hub_init_add_device(hub, port, usb_port_speed(&status)); 508 509 } else { … … 516 517 usb_hub_over_current(hub,port); 517 518 }else{ 518 usb_log_ info("over current condition was auto-resolved on port %d\n",519 usb_log_debug("over current condition was auto-resolved on port %d\n", 519 520 port); 520 521 } … … 522 523 //port reset 523 524 if (usb_port_reset_completed(&status)) { 524 usb_log_ info("port reset complete\n");525 usb_log_debug("port reset complete\n"); 525 526 if (usb_port_enabled(&status)) { 526 527 usb_hub_finalize_add_device(hub, port, usb_port_speed(&status));
Note:
See TracChangeset
for help on using the changeset viewer.