Changeset 41abf3c in mainline for uspace/drv/bus/usb/xhci/debug.c


Ignore:
Timestamp:
2018-01-18T19:08:51Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7138a78b
Parents:
8fe29a7c
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-18 19:06:36)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-18 19:08:51)
Message:

xhci: various debugging changes

File:
1 edited

Legend:

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

    r8fe29a7c r41abf3c  
    264264void xhci_dump_trb(const xhci_trb_t *trb)
    265265{
    266         usb_log_debug2("TRB(%p): type %s, cycle %u", trb, xhci_trb_str_type(TRB_TYPE(*trb)), TRB_CYCLE(*trb));
     266        usb_log_debug2("TRB(%p): type %s, cycle %u, status 0x%#08" PRIx32 ", parameter 0x%#016" PRIx64, trb, xhci_trb_str_type(TRB_TYPE(*trb)), TRB_CYCLE(*trb), trb->status, trb->parameter);
    267267}
    268268
     
    341341}
    342342
    343 static void xhci_dump_slot_ctx(const struct xhci_slot_ctx *ctx)
     343void xhci_dump_slot_ctx(const struct xhci_slot_ctx *ctx)
    344344{
    345345#define SLOT_DUMP(name) usb_log_debug("\t" #name ":\t0x%x", XHCI_SLOT_##name(*ctx))
     
    356356        SLOT_DUMP(INTERRUPTER);
    357357        SLOT_DUMP(DEVICE_ADDRESS);
    358         SLOT_DUMP(SLOT_STATE);
     358        SLOT_DUMP(STATE);
    359359#undef SLOT_DUMP
    360360}
    361361
    362 static void xhci_dump_endpoint_ctx(const struct xhci_endpoint_ctx *ctx)
     362void xhci_dump_endpoint_ctx(const struct xhci_endpoint_ctx *ctx)
    363363{
    364364#define EP_DUMP_DW(name)        usb_log_debug("\t" #name ":\t0x%x", XHCI_EP_##name(*ctx))
Note: See TracChangeset for help on using the changeset viewer.