Changes in uspace/drv/uhci-rhd/main.c [fbefd0e:f123909] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/main.c
rfbefd0e rf123909 36 36 #include <device/hw_res.h> 37 37 #include <errno.h> 38 #include <str_error.h>39 38 #include <usb_iface.h> 40 39 #include <usb/ddfiface.h> … … 87 86 int ret = hc_get_my_registers(device, &io_regs, &io_size); 88 87 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); 91 90 } 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); 93 92 94 93 uhci_root_hub_t *rh = malloc(sizeof(uhci_root_hub_t)); … … 100 99 ret = uhci_root_hub_init(rh, (void*)io_regs, io_size, device); 101 100 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); 104 102 free(rh); 105 103 return ret; … … 107 105 108 106 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); 111 109 return EOK; 112 110 } … … 131 129 int main(int argc, char *argv[]) 132 130 { 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); 137 132 return ddf_driver_main(&uhci_rh_driver); 138 133 }
Note:
See TracChangeset
for help on using the changeset viewer.