Changeset 5a6cc679 in mainline for uspace/app/usbinfo


Ignore:
Timestamp:
2018-01-31T02:21:24Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

Location:
uspace/app/usbinfo
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/hid.c

    r132ab5d1 r5a6cc679  
    136136
    137137        size_t actual_report_size;
    138         int rc = usb_request_get_descriptor(ctrl_pipe,
     138        errno_t rc = usb_request_get_descriptor(ctrl_pipe,
    139139            USB_REQUEST_TYPE_STANDARD, USB_REQUEST_RECIPIENT_INTERFACE,
    140140            USB_DESCTYPE_HID_REPORT, 0, iface_no,
  • uspace/app/usbinfo/info.c

    r132ab5d1 r5a6cc679  
    322322        l18_win_locales_t *langs;
    323323        size_t langs_count;
    324         int rc = usb_request_get_supported_languages(
     324        errno_t rc = usb_request_get_supported_languages(
    325325            usb_device_get_default_pipe(usb_dev), &langs, &langs_count);
    326326        if (rc != EOK) {
     
    371371void dump_status(usb_device_t *usb_dev)
    372372{
    373         int rc;
     373        errno_t rc;
    374374        uint16_t status = 0;
    375375
  • uspace/app/usbinfo/list.c

    r132ab5d1 r5a6cc679  
    5353{
    5454        char path[MAX_PATH_LENGTH];
    55         int rc = devman_fun_get_path(handle, path, MAX_PATH_LENGTH);
     55        errno_t rc = devman_fun_get_path(handle, path, MAX_PATH_LENGTH);
    5656        if (rc != EOK) {
    5757                printf(NAME "Failed to get path for device %"PRIun"\n", handle);
     
    6464{
    6565        devman_handle_t hc_handle = 0;
    66         int rc = devman_fun_sid_to_handle(svc, &hc_handle);
     66        errno_t rc = devman_fun_sid_to_handle(svc, &hc_handle);
    6767        if (rc != EOK) {
    6868                printf(NAME ": Error resolving handle of HC with SID %"
     
    133133        service_id_t *svcs;
    134134        size_t count;
    135         int rc;
     135        errno_t rc;
    136136
    137137        rc = loc_category_get_id(USB_HC_CATEGORY, &usbhc_cat, 0);
  • uspace/app/usbinfo/main.c

    r132ab5d1 r5a6cc679  
    198198                /* The initialization is here only to make compiler happy. */
    199199                devman_handle_t handle = 0;
    200                 int rc = usb_resolve_device_handle(devpath, &handle);
     200                errno_t rc = usb_resolve_device_handle(devpath, &handle);
    201201                if (rc != EOK) {
    202202                        fprintf(stderr, NAME ": device `%s' not found "
  • uspace/app/usbinfo/usbinfo.h

    r132ab5d1 r5a6cc679  
    5656extern void dump_descriptor_tree(uint8_t *, size_t);
    5757
    58 static inline void internal_error(int err)
     58static inline void internal_error(errno_t err)
    5959{
    6060        fprintf(stderr, NAME ": internal error (%s).\n", str_error(err));
Note: See TracChangeset for help on using the changeset viewer.