Changeset 7ce0fe3 in mainline for uspace/drv/uhci-rhd/root_hub.c


Ignore:
Timestamp:
2011-02-01T22:02:23Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
afcd86e
Parents:
993a1e1
Message:

Root ub driver uses unified debug logging and some other polishing.

File:
1 edited

Legend:

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

    r993a1e1 r7ce0fe3  
    66
    77#include <usb/usbdrv.h>
     8#include <usb/debug.h>
    89
    9 #include "debug.h"
    1010#include "root_hub.h"
    1111
     
    1818        int ret;
    1919        ret = usb_drv_find_hc(rh, &instance->hc_handle);
    20         uhci_print_info("rh found(%d) hc handle: %d.\n", ret, instance->hc_handle);
     20        usb_log_info("rh found(%d) hc handle: %d.\n", ret, instance->hc_handle);
    2121        if (ret != EOK) {
    2222                return ret;
     
    2727        //usb_drv_hc_connect(rh, instance->hc_handle, 0);
    2828        if (rh->parent_phone < 0) {
    29                 uhci_print_error("Failed to connect to the HC device.\n");
     29                usb_log_error("Failed to connect to the HC device.\n");
    3030                return rh->parent_phone;
    3131        }
     
    3838
    3939        if (ret < 0) {
    40                 uhci_print_error(": Failed to gain access to port registers at %p\n", regs);
     40                usb_log_error("Failed to gain access to port registers at %p\n", regs);
    4141                return ret;
    4242        }
Note: See TracChangeset for help on using the changeset viewer.