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

Changeset 92900e2 in mainline


Ignore:
Timestamp:
2015-06-28T23:33:27Z (6 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
c86ca9a
Parents:
1329dc0
Message:

ehci: Add more debugging output

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

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_rh.c

    r1329dc0 r92900e2  
    3636#include <errno.h>
    3737#include <mem.h>
     38#include <str_error.h>
    3839#include <sys/types.h>
    3940
     
    145146            batch->buffer, batch->buffer_size, &batch->transfered_size);
    146147        if (batch->error == ENAK) {
     148                usb_log_debug("EHCI RH(%p): BATCH(%p) adding as unfinished\n",
     149                    instance, batch);
    147150                /* This is safe because only status change interrupt transfers
    148151                 * return NAK. The assertion holds true because the batch
     
    153156                usb_transfer_batch_finish(batch, NULL);
    154157                usb_transfer_batch_destroy(batch);
     158                usb_log_debug("EHCI RH(%p): BATCH(%p) virtual request: %s\n",
     159                    instance, batch, str_error(batch->error));
    155160        }
    156161        return EOK;
  • uspace/drv/bus/usb/ehci/hc.c

    r1329dc0 r92900e2  
    220220        assert(ep);
    221221        ehci_endpoint_t *ehci_ep = ehci_endpoint_get(ep);
     222        usb_log_debug("HCD(%p) enqueue EP(%d:%d:%s:%s)\n", instance,
     223            ep->address, ep->endpoint,
     224            usb_str_transfer_type_short(ep->transfer_type),
     225            usb_str_direction(ep->direction));
    222226        switch (ep->transfer_type)
    223227        {
     
    240244        assert(ep);
    241245        ehci_endpoint_t *ehci_ep = ehci_endpoint_get(ep);
     246        usb_log_debug("HCD(%p) dequeue EP(%d:%d:%s:%s)\n", instance,
     247            ep->address, ep->endpoint,
     248            usb_str_transfer_type_short(ep->transfer_type),
     249            usb_str_direction(ep->direction));
    242250        switch (ep->transfer_type)
    243251        {
Note: See TracChangeset for help on using the changeset viewer.