Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8afb485 in mainline


Ignore:
Timestamp:
2017-10-05T07:36:15Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
d09d108
Parents:
0c4c6a2
Message:

Decreased buffer size. Printing warning when interrupt fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    r0c4c6a2 r8afb485  
    244244        usb_direction_t dir = USB_DIRECTION_IN;
    245245        usb_device_request_setup_packet_t setup;
    246         uint64_t buffer[10];
     246        uint64_t buffer[2];
    247247        size_t real_size = 0;
    248248        err = virthub_base_request(&hc->rh.base, target, dir, &setup, &buffer,
    249249                sizeof(buffer), &real_size);
     250
     251        if (err != EOK) {
     252                usb_log_warning("Invoking interrupt on virtual hub failed: %s",
     253                    str_error(err));
     254        }
    250255
    251256        return EOK;
Note: See TracChangeset for help on using the changeset viewer.