Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/main.c

    rfbefd0e rf123909  
    3636#include <device/hw_res.h>
    3737#include <errno.h>
    38 #include <str_error.h>
    3938#include <usb_iface.h>
    4039#include <usb/ddfiface.h>
     
    8786        int ret = hc_get_my_registers(device, &io_regs, &io_size);
    8887        if (ret != EOK) {
    89                 usb_log_error("Failed to get registers from parent HC: %s.\n",
    90                     str_error(ret));
     88                usb_log_error("Failed(%d) to get registers from parent hc.",
     89                    ret);
    9190        }
    92         usb_log_debug("I/O regs at %#X (size %zu).\n", io_regs, io_size);
     91        usb_log_info("I/O regs at %#X (size %zu).\n", io_regs, io_size);
    9392
    9493        uhci_root_hub_t *rh = malloc(sizeof(uhci_root_hub_t));
     
    10099        ret = uhci_root_hub_init(rh, (void*)io_regs, io_size, device);
    101100        if (ret != EOK) {
    102                 usb_log_error("Failed to initialize driver instance: %s.\n",
    103                     str_error(ret));
     101                usb_log_error("Failed(%d) to initialize driver instance.\n", ret);
    104102                free(rh);
    105103                return ret;
     
    107105
    108106        device->driver_data = rh;
    109         usb_log_info("Controlling root hub `%s' (%llu).\n",
    110             device->name, device->handle);
     107        usb_log_info("Sucessfully initialized driver instance for device:%d.\n",
     108            device->handle);
    111109        return EOK;
    112110}
     
    131129int main(int argc, char *argv[])
    132130{
    133         printf(NAME ": HelenOS UHCI root hub driver.\n");
    134 
    135         usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    136 
     131        usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
    137132        return ddf_driver_main(&uhci_rh_driver);
    138133}
Note: See TracChangeset for help on using the changeset viewer.