Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r4d0c40b rfbefd0e  
    132132                return opResult;
    133133        }
    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);
    135135        hub_info->port_count = descriptor->ports_count;
    136136        hub_info->attached_devs = (usb_hc_attached_device_t*)
     
    159159        usb_standard_device_descriptor_t *std_descriptor
    160160            = &hub_info->usb_device->descriptors.device;
    161         usb_log_info("hub has %d configurations\n",
     161        usb_log_debug("hub has %d configurations\n",
    162162            std_descriptor->configuration_count);
    163163        if(std_descriptor->configuration_count<1){
    164                 usb_log_error("there are no configurations available\n");
     164                usb_log_error("THERE ARE NO CONFIGURATIONS AVAILABLE\n");
     165                //shouldn`t I return?
     166                //definitely
    165167                return EINVAL;
    166168        }
     
    288290        //if this hub already uses default address, it cannot request it once more
    289291        if(hub->is_default_address_used) return;
    290         usb_log_info("some connection changed\n");
     292        usb_log_debug("some connection changed\n");
    291293        assert(hub->control_pipe->hc_phone);
    292294        int opResult = usb_hub_clear_port_feature(hub->control_pipe,
     
    331333
    332334        int opResult;
    333         usb_log_info("finalizing add device\n");
     335        usb_log_debug("finalizing add device\n");
    334336        opResult = usb_hub_clear_port_feature(hub->control_pipe,
    335337            port, USB_HUB_FEATURE_C_PORT_RESET);
     
    363365                return;
    364366        }
    365         usb_log_info("setting new address %d\n",new_device_address);
     367        usb_log_debug("setting new address %d\n",new_device_address);
    366368        //opResult = usb_drv_req_set_address(hc, USB_ADDRESS_DEFAULT,
    367369        //    new_device_address);
     
    403405                return;
    404406        }
    405         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,
    406410            new_device_address, child_handle);
    407 
    408411}
    409412
     
    502505        if (usb_port_connect_change(&status)) {
    503506                if (usb_port_dev_connected(&status)) {
    504                         usb_log_info("some connection changed\n");
     507                        usb_log_debug("some connection changed\n");
    505508                        usb_hub_init_add_device(hub, port, usb_port_speed(&status));
    506509                } else {
     
    514517                        usb_hub_over_current(hub,port);
    515518                }else{
    516                         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",
    517520                                        port);
    518521                }
     
    520523        //port reset
    521524        if (usb_port_reset_completed(&status)) {
    522                 usb_log_info("port reset complete\n");
     525                usb_log_debug("port reset complete\n");
    523526                if (usb_port_enabled(&status)) {
    524527                        usb_hub_finalize_add_device(hub, port, usb_port_speed(&status));
Note: See TracChangeset for help on using the changeset viewer.