Changeset a1732929 in mainline for uspace/drv/bus/usb/ohci/endpoint_list.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/ohci/endpoint_list.c
rc1a966e ra1732929 57 57 instance->list_head = malloc32(sizeof(ed_t)); 58 58 if (!instance->list_head) { 59 usb_log_error("Failed to allocate list head. \n");59 usb_log_error("Failed to allocate list head."); 60 60 return ENOMEM; 61 61 } 62 62 instance->list_head_pa = addr_to_phys(instance->list_head); 63 usb_log_debug2("Transfer list %s setup with ED: %p(0x%0" PRIx32 ")). \n",63 usb_log_debug2("Transfer list %s setup with ED: %p(0x%0" PRIx32 ")).", 64 64 name, instance->list_head, instance->list_head_pa); 65 65 … … 96 96 assert(instance); 97 97 assert(ep); 98 usb_log_debug2("Queue %s: Adding endpoint(%p). \n", instance->name, ep);98 usb_log_debug2("Queue %s: Adding endpoint(%p).", instance->name, ep); 99 99 100 100 fibril_mutex_lock(&instance->guard); … … 126 126 ohci_endpoint_t *first = list_get_instance( 127 127 list_first(&instance->endpoint_list), ohci_endpoint_t, link); 128 usb_log_debug("HCD EP(%p) added to list %s, first is %p(%p). \n",128 usb_log_debug("HCD EP(%p) added to list %s, first is %p(%p).", 129 129 ep, instance->name, first, first->ed); 130 130 if (last_ed == instance->list_head) { 131 usb_log_debug2("%s head ED(%p-0x%0" PRIx32 "): %x:%x:%x:%x. \n",131 usb_log_debug2("%s head ED(%p-0x%0" PRIx32 "): %x:%x:%x:%x.", 132 132 instance->name, last_ed, instance->list_head_pa, 133 133 last_ed->status, last_ed->td_tail, last_ed->td_head, … … 151 151 fibril_mutex_lock(&instance->guard); 152 152 153 usb_log_debug2("Queue %s: removing endpoint(%p). \n", instance->name, ep);153 usb_log_debug2("Queue %s: removing endpoint(%p).", instance->name, ep); 154 154 155 155 const char *qpos = NULL; … … 171 171 write_barrier(); 172 172 173 usb_log_debug("HCD EP(%p) removed (%s) from %s, next %x. \n",173 usb_log_debug("HCD EP(%p) removed (%s) from %s, next %x.", 174 174 ep, qpos, instance->name, ep->ed->next); 175 175
Note:
See TracChangeset
for help on using the changeset viewer.