Changeset aab02fb in mainline for uspace/lib/usbvirt/ctrlpipe.c
- Timestamp:
- 2010-10-26T22:21:45Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- efedee7
- Parents:
- fa2a361
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/ctrlpipe.c
rfa2a361 raab02fb 45 45 ((value & GET_MIDBITS_MASK(size, shift)) >> shift) 46 46 47 usb_address_t dev_new_address = -1; 47 48 static const char *str_request_type(int type) 49 { 50 switch (type) { 51 case REQUEST_TYPE_STANDARD: 52 return "standard"; 53 case REQUEST_TYPE_CLASS: 54 return "class"; 55 default: 56 return "unknown"; 57 } 58 } 48 59 49 60 /** Tell request type. … … 59 70 int control_pipe(usbvirt_device_t *device, usbvirt_control_transfer_t *transfer) 60 71 { 72 device->lib_debug(device, 1, USBVIRT_DEBUGTAG_CONTROL_PIPE_ZERO, 73 "op on control pipe zero (request_size=%u)", transfer->request_size); 74 61 75 if (transfer->request_size < sizeof(usb_device_request_setup_packet_t)) { 62 76 return ENOMEM; … … 69 83 70 84 int rc = EOK; 85 86 device->lib_debug(device, 2, USBVIRT_DEBUGTAG_CONTROL_PIPE_ZERO, 87 "request type: %s", str_request_type(type)); 71 88 72 89 switch (type) { … … 97 114 98 115 device->new_address = -1; 116 117 device->lib_debug(device, 2, USBVIRT_DEBUGTAG_CONTROL_PIPE_ZERO, 118 "device address changed to %d (state %s)", 119 device->address, str_device_state(device->state)); 99 120 } 100 121
Note:
See TracChangeset
for help on using the changeset viewer.