Changeset 10059a68 in mainline


Ignore:
Timestamp:
2011-10-31T10:54:31Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
90d7033
Parents:
ae754e5f
Message:

libusbdev: Warn if error handling fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/hub.c

    rae754e5f r10059a68  
    177177 * @param[in] arg Any data argument to @p enable_port.
    178178 * @param[out] assigned_address USB address of the device.
    179  * @param[in] dev_ops Child device ops.
     179 * @param[in] dev_ops Child device ops. Will use default if not provided.
    180180 * @param[in] new_dev_data Arbitrary pointer to be stored in the child
    181181 *      as @c driver_data.
     
    357357         */
    358358leave_release_default_address:
    359         usb_pipe_unregister(&ctrl_pipe, &hc_conn);
     359        if (usb_pipe_unregister(&ctrl_pipe, &hc_conn) != EOK)
     360                usb_log_warning("%s: Failed to unregister default pipe.\n",
     361                    __FUNCTION__);
    360362
    361363leave_release_free_address:
    362         usb_hc_unregister_device(&hc_conn, dev_addr);
     364        if (usb_hc_unregister_device(&hc_conn, dev_addr) != EOK)
     365                usb_log_warning("%s: Failed to unregister device.\n",
     366                    __FUNCTION__);
    363367
    364368close_connection:
    365369        if (usb_hc_connection_close(&hc_conn) != EOK)
    366                 usb_log_warning("usb_hc_new_device_wrapper(): Failed to close "
    367                     "connection.\n");
     370                usb_log_warning("%s: Failed to close connection.\n",
     371                    __FUNCTION__);
    368372
    369373        return rc;
Note: See TracChangeset for help on using the changeset viewer.