Changeset 408d3c9 in mainline
- Timestamp:
- 2011-07-12T18:56:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9d4c1b6
- Parents:
- 26858040
- Location:
- uspace/drv/bus/usb/uhci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/root_hub.c
r26858040 r408d3c9 55 55 int ret = asprintf(&match_str, "usb&uhci&root-hub"); 56 56 if (ret < 0) { 57 usb_log_error( 58 "Failed(%d) to create root hub match string: %s.\n", 59 ret, str_error(ret)); 57 usb_log_error("Failed to create root hub match string: %s.\n", 58 str_error(ret)); 60 59 return ret; 61 60 } … … 65 64 if (ret != EOK) { 66 65 free(match_str); 67 usb_log_error("Failed (%d)to add root hub match id: %s\n",68 ret,str_error(ret));66 usb_log_error("Failed to add root hub match id: %s\n", 67 str_error(ret)); 69 68 return ret; 70 69 } -
uspace/drv/bus/usb/uhci/uhci.c
r26858040 r408d3c9 253 253 ret = hc_init(&instance->hc, (void*)reg_base, reg_size, interrupts); 254 254 CHECK_RET_DEST_FREE_RETURN(ret, 255 "Failed (%d) to init uhci_hcd: %s.\n", ret, str_error(ret));255 "Failed to init uhci_hcd: %s.\n", str_error(ret)); 256 256 257 257 device->driver_data = instance; … … 265 265 266 266 ret = ddf_fun_bind(instance->hc_fun); 267 CHECK_RET_FINI_RETURN(ret, 268 "Failed(%d) to bind UHCI device function: %s.\n", 269 ret, str_error(ret)); 267 CHECK_RET_FINI_RETURN(ret, "Failed to bind UHCI device function: %s.\n", 268 str_error(ret)); 270 269 271 270 ret = ddf_fun_add_to_class(instance->hc_fun, USB_HC_DDF_CLASS_NAME); … … 276 275 (uintptr_t)instance->hc.registers + 0x10, 4); 277 276 CHECK_RET_FINI_RETURN(ret, 278 "Failed (%d) to setup UHCI root hub: %s.\n", ret, str_error(ret));277 "Failed to setup UHCI root hub: %s.\n", str_error(ret)); 279 278 280 279 ret = ddf_fun_bind(instance->rh_fun); 281 280 CHECK_RET_FINI_RETURN(ret, 282 "Failed (%d) to register UHCI root hub: %s.\n", ret, str_error(ret));281 "Failed to register UHCI root hub: %s.\n", str_error(ret)); 283 282 284 283 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.