Changeset 6ef69e9 in mainline
- Timestamp:
- 2015-06-30T04:51:38Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c4ba645d
- Parents:
- 26d6f73
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_batch.c
r26d6f73 r6ef69e9 38 38 #include <mem.h> 39 39 #include <stdbool.h> 40 #include <str_error.h> 40 41 41 42 #include <usb/usb.h> … … 159 160 batch_setup[usb_batch->ep->transfer_type](ehci_batch, dir); 160 161 162 usb_log_debug("Batch %p %s " USB_TRANSFER_BATCH_FMT " initialized.\n", 163 usb_batch, usb_str_direction(dir), 164 USB_TRANSFER_BATCH_ARGS(*usb_batch)); 165 161 166 return ehci_batch; 162 167 dispose: … … 222 227 -= td_remain_size(ehci_batch->tds[i]); 223 228 } else { 224 usb_log_debug("Batch %p found error TD(%zu):%08x .\n",229 usb_log_debug("Batch %p found error TD(%zu):%08x (%d).\n", 225 230 ehci_batch->usb_batch, i, 226 ehci_batch->tds[i]->status); 231 ehci_batch->tds[i]->status, 232 ehci_batch->usb_batch->error); 227 233 /* Clear possible ED HALT */ 228 234 qh_clear_halt(ehci_batch->qh); … … 236 242 ehci_batch->qh->next = LINK_POINTER_TERM; 237 243 ehci_batch->qh->current = LINK_POINTER_TERM; 238 usb_log_debug("Batch %p complete.\n", ehci_batch->usb_batch); 244 usb_log_debug("Batch %p complete: %s", ehci_batch->usb_batch, 245 str_error(ehci_batch->usb_batch->error)); 239 246 240 247 return true; … … 321 328 ehci_batch->tds[td_current]->next, 322 329 ehci_batch->tds[td_current]->alternate); 323 324 usb_log_debug(325 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized.\n", \326 ehci_batch->usb_batch,327 usb_str_transfer_type(ehci_batch->usb_batch->ep->transfer_type),328 usb_str_direction(dir),329 USB_TRANSFER_BATCH_ARGS(*ehci_batch->usb_batch));330 330 } 331 331 … … 344 344 assert(dir == USB_DIRECTION_IN || dir == USB_DIRECTION_OUT); 345 345 346 usb_log_debug ("Control QH(%"PRIxn"): %08x:%08x:%08x:%08x:%08x:%08x",346 usb_log_debug2("Control QH(%"PRIxn"): %08x:%08x:%08x:%08x:%08x:%08x", 347 347 addr_to_phys(ehci_batch->qh), 348 348 ehci_batch->qh->ep_char, ehci_batch->qh->ep_cap, … … 374 374 ++td_current; 375 375 } 376 377 usb_log_debug(378 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized",379 ehci_batch->usb_batch,380 usb_str_transfer_type(ehci_batch->usb_batch->ep->transfer_type),381 usb_str_direction(dir),382 USB_TRANSFER_BATCH_ARGS(*ehci_batch->usb_batch));383 376 } 384 377
Note:
See TracChangeset
for help on using the changeset viewer.