Changeset aab02fb in mainline for uspace/lib/usbvirt/stdreq.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/stdreq.c

    rfa2a361 raab02fb  
    187187    usb_device_request_setup_packet_t *request, uint8_t *data)
    188188{
     189        device->lib_debug(device, 3, USBVIRT_DEBUGTAG_CONTROL_PIPE_ZERO,
     190            "handling standard request %d", request->request);
     191       
    189192        HANDLE_REQUEST(request, data, USB_DEVREQ_GET_DESCRIPTOR,
    190193            device, on_get_descriptor,
Note: See TracChangeset for help on using the changeset viewer.