Ignore:
File:
1 edited

Legend:

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

    r618f9ed r4125b7d  
    105105        }
    106106
     107        //usb_pipe_start_session(hub_info->control_pipe);
    107108        //set hub configuration
    108109        opResult = usb_hub_set_configuration(hub_info);
     
    121122                return opResult;
    122123        }
     124        //usb_pipe_end_session(hub_info->control_pipe);
     125
    123126
    124127        usb_log_debug("Creating 'hub' function in DDF.\n");
     
    215218        // get hub descriptor
    216219        usb_log_debug("creating serialized descriptor\n");
     220        //void * serialized_descriptor = malloc(USB_HUB_MAX_DESCRIPTOR_SIZE);
    217221        uint8_t serialized_descriptor[USB_HUB_MAX_DESCRIPTOR_SIZE];
    218222        usb_hub_descriptor_t * descriptor;
     
    260264                                    port+1, USB_HUB_FEATURE_PORT_POWER);
    261265                                if (opResult != EOK) {
    262                                         usb_log_error("cannot power on port %d;  %d\n",
    263                                             port+1, opResult);
     266                                        usb_log_error("cannot power on port %zu: %s.\n",
     267                                            port+1, str_error(opResult));
    264268                                }
    265269                        }
     
    269273                            USB_HUB_FEATURE_C_HUB_LOCAL_POWER);
    270274                        if (opResult != EOK) {
    271                                 usb_log_error("cannot power hub;  %d\n",
    272                                   opResult);
     275                                usb_log_error("cannot power hub: %s\n",
     276                                    str_error(opResult));
    273277                        }
    274278                }
     
    277281        }
    278282        usb_log_debug2("freeing data\n");
     283        //free(serialized_descriptor);
     284        //free(descriptor->devices_removable);
    279285        free(descriptor);
    280286        return EOK;
     
    356362        }
    357363
    358         usb_log_info("Controlling hub `%s' (%d ports).\n",
     364        usb_log_info("Controlling hub `%s' (%zu ports).\n",
    359365            hub_info->usb_device->ddf_dev->name, hub_info->port_count);
    360366        return EOK;
     
    424430                            port, USB_HUB_FEATURE_PORT_POWER);
    425431                        if (opResult != EOK) {
    426                                 usb_log_error("cannot power on port %d;  %d\n",
    427                                     port, opResult);
     432                                usb_log_error("Cannot power on port %zu: %s.\n",
     433                                    port, str_error(opResult));
    428434                        }
    429435                }
Note: See TracChangeset for help on using the changeset viewer.