Changeset aab02fb in mainline for uspace/lib/usbvirt/transaction.c


Ignore:
Timestamp:
2010-10-26T22:21:45Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efedee77
Parents:
fa2a361
Message:

Debugging support for libusbvirt

Added methods debug and lib_debug to device structure to simplify
debugging. Each method gets as a parameter debug level describing
verbosity of the message and also message tag that allows filtering
based on message type (e.g. messages related to transactions, to
device requests etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/transaction.c

    rfa2a361 raab02fb  
    6767    void *buffer, size_t size)
    6868{
     69        device->lib_debug(device, 1, USBVIRT_DEBUGTAG_TRANSACTION,
     70            "setup transaction: endpoint=%d, size=%u", endpoint, size);
     71       
    6972        usbvirt_control_transfer_t *transfer = &device->current_control_transfers[endpoint];
    7073       
     
    97100    void *buffer, size_t size)
    98101{
     102        device->lib_debug(device, 1, USBVIRT_DEBUGTAG_TRANSACTION,
     103            "out transaction: endpoint=%d, size=%u", endpoint, size);
     104       
    99105        /*
    100106         * First check whether it is a transaction over control pipe.
     
    151157    void *buffer, size_t size, size_t *data_size)
    152158{
     159        device->lib_debug(device, 1, USBVIRT_DEBUGTAG_TRANSACTION,
     160            "in transaction: endpoint=%d, size=%u", endpoint, size);
     161       
    153162        /*
    154163         * First check whether it is a transaction over control pipe.
Note: See TracChangeset for help on using the changeset viewer.