Changeset a1732929 in mainline for uspace/drv/bus/usb/uhci/uhci_batch.c
- Timestamp:
- 2018-01-15T17:04:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ff99e8
- Parents:
- c1a966e
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci_batch.c
rc1a966e ra1732929 75 75 calloc(1, sizeof(uhci_transfer_batch_t)); 76 76 if (!uhci_batch) { 77 usb_log_error("Failed to allocate UHCI batch. \n");77 usb_log_error("Failed to allocate UHCI batch."); 78 78 return NULL; 79 79 } … … 112 112 uhci_batch->device_buffer = malloc32(total_size); 113 113 if (!uhci_batch->device_buffer) { 114 usb_log_error("Failed to allocate UHCI buffer. \n");114 usb_log_error("Failed to allocate UHCI buffer."); 115 115 return ENOMEM; 116 116 } … … 135 135 } 136 136 usb_log_debug2("Batch %p " USB_TRANSFER_BATCH_FMT 137 " memory structures ready. \n", usb_batch,137 " memory structures ready.", usb_batch, 138 138 USB_TRANSFER_BATCH_ARGS(*usb_batch)); 139 139 … … 159 159 160 160 usb_log_debug2("Batch %p " USB_TRANSFER_BATCH_FMT 161 " checking %zu transfer(s) for completion. \n",161 " checking %zu transfer(s) for completion.", 162 162 uhci_batch, USB_TRANSFER_BATCH_ARGS(*batch), 163 163 uhci_batch->td_count); … … 174 174 175 175 usb_log_debug("Batch %p found error TD(%zu->%p):%" 176 PRIx32 ". \n", uhci_batch, i,176 PRIx32 ".", uhci_batch, i, 177 177 &uhci_batch->tds[i], uhci_batch->tds[i].status); 178 178 td_print_status(&uhci_batch->tds[i]); … … 260 260 uhci_batch->base.ep->toggle = toggle; 261 261 usb_log_debug2( 262 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized. \n", \262 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized.", \ 263 263 uhci_batch, 264 264 usb_str_transfer_type(uhci_batch->base.ep->transfer_type), … … 333 333 td_set_ioc(&uhci_batch->tds[td]); 334 334 335 usb_log_debug2("Control last TD status: %x. \n",335 usb_log_debug2("Control last TD status: %x.", 336 336 uhci_batch->tds[td].status); 337 337 }
Note:
See TracChangeset
for help on using the changeset viewer.