Ignore:
File:
1 edited

Legend:

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

    r4125b7d r618f9ed  
    105105        }
    106106
    107         //usb_pipe_start_session(hub_info->control_pipe);
    108107        //set hub configuration
    109108        opResult = usb_hub_set_configuration(hub_info);
     
    122121                return opResult;
    123122        }
    124         //usb_pipe_end_session(hub_info->control_pipe);
    125 
    126123
    127124        usb_log_debug("Creating 'hub' function in DDF.\n");
     
    218215        // get hub descriptor
    219216        usb_log_debug("creating serialized descriptor\n");
    220         //void * serialized_descriptor = malloc(USB_HUB_MAX_DESCRIPTOR_SIZE);
    221217        uint8_t serialized_descriptor[USB_HUB_MAX_DESCRIPTOR_SIZE];
    222218        usb_hub_descriptor_t * descriptor;
     
    264260                                    port+1, USB_HUB_FEATURE_PORT_POWER);
    265261                                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);
    268264                                }
    269265                        }
     
    273269                            USB_HUB_FEATURE_C_HUB_LOCAL_POWER);
    274270                        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);
    277273                        }
    278274                }
     
    281277        }
    282278        usb_log_debug2("freeing data\n");
    283         //free(serialized_descriptor);
    284         //free(descriptor->devices_removable);
    285279        free(descriptor);
    286280        return EOK;
     
    362356        }
    363357
    364         usb_log_info("Controlling hub `%s' (%zu ports).\n",
     358        usb_log_info("Controlling hub `%s' (%d ports).\n",
    365359            hub_info->usb_device->ddf_dev->name, hub_info->port_count);
    366360        return EOK;
     
    430424                            port, USB_HUB_FEATURE_PORT_POWER);
    431425                        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);
    434428                        }
    435429                }
Note: See TracChangeset for help on using the changeset viewer.