Changeset 408d3c9 in mainline


Ignore:
Timestamp:
2011-07-12T18:56:56Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9d4c1b6
Parents:
26858040
Message:

UHCI: Remove error number from messages.

Location:
uspace/drv/bus/usb/uhci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/root_hub.c

    r26858040 r408d3c9  
    5555        int ret = asprintf(&match_str, "usb&uhci&root-hub");
    5656        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));
    6059                return ret;
    6160        }
     
    6564        if (ret != EOK) {
    6665                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));
    6968                return ret;
    7069        }
  • uspace/drv/bus/usb/uhci/uhci.c

    r26858040 r408d3c9  
    253253        ret = hc_init(&instance->hc, (void*)reg_base, reg_size, interrupts);
    254254        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));
    256256
    257257        device->driver_data = instance;
     
    265265
    266266        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));
    270269
    271270        ret = ddf_fun_add_to_class(instance->hc_fun, USB_HC_DDF_CLASS_NAME);
     
    276275            (uintptr_t)instance->hc.registers + 0x10, 4);
    277276        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));
    279278
    280279        ret = ddf_fun_bind(instance->rh_fun);
    281280        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));
    283282
    284283        return EOK;
Note: See TracChangeset for help on using the changeset viewer.