Changeset 954d590 in mainline


Ignore:
Timestamp:
2015-07-03T22:59:37Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
495547d
Parents:
6de4b4a1
Message:

ehci/eplist: Consolidate debug messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/endpoint_list.c

    r6de4b4a1 r954d590  
    5656        instance->list_head = malloc32(sizeof(qh_t));
    5757        if (!instance->list_head) {
    58                 usb_log_error("Failed to allocate list head.\n");
     58                usb_log_error("EPL(%p-%s): Failed to allocate list head.",
     59                    instance, name);
    5960                return ENOMEM;
    6061        }
     
    6263
    6364        list_initialize(&instance->endpoint_list);
    64         usb_log_debug2("Transfer list %s setup with ED: %p(%"PRIxn").\n",
    65             name, instance->list_head, addr_to_phys(instance->list_head));
     65        fibril_mutex_initialize(&instance->guard);
    6666
    67         fibril_mutex_initialize(&instance->guard);
     67        usb_log_debug2("EPL(%p-%s): Transfer list setup with ED: %p(%"PRIxn").",
     68            instance, name, instance->list_head,
     69            addr_to_phys(instance->list_head));
     70
    6871        return EOK;
    6972}
     
    7578        assert(instance->list_head);
    7679        assert(next->list_head);
     80
     81        usb_log_debug2("EPL(%p-%s): Chained with EPL(%p-%s).",
     82            instance, instance->name, next, next->name);
    7783
    7884        qh_append_qh(instance->list_head, next->list_head);
     
    9197        assert(ep);
    9298        assert(ep->qh);
    93         usb_log_debug2("Queue %s: Append endpoint(%p).\n", instance->name, ep);
     99        usb_log_debug2("EPL(%p-%s): Append endpoint(%p).\n",
     100            instance, instance->name, ep);
    94101
    95102        fibril_mutex_lock(&instance->guard);
     
    121128        ehci_endpoint_t *first = ehci_endpoint_list_instance(
    122129            list_first(&instance->endpoint_list));
    123         usb_log_debug("HCD EP(%p) added to list %s, first is %p(%p).\n",
    124                 ep, instance->name, first, first->qh);
     130        usb_log_debug("EPL(%p-%s): EP(%p) added to list, first is %p(%p).\n",
     131            instance, instance->name, ep, first, first->qh);
    125132        if (last_qh == instance->list_head) {
    126                 usb_log_debug2("%s head ED(%p-%"PRIxn"): %x:%x.\n",
    127                     instance->name, last_qh, addr_to_phys(instance->list_head),
     133                usb_log_debug2("EPL(%p-%s): head EP(%p-%"PRIxn"): %x:%x.\n",
     134                    instance, instance->name, last_qh,
     135                    addr_to_phys(instance->list_head),
    128136                    last_qh->status, last_qh->horizontal);
    129137        }
     
    145153        fibril_mutex_lock(&instance->guard);
    146154
    147         usb_log_debug2("Queue %s: removing endpoint(%p).\n", instance->name, ep);
     155        usb_log_debug2("EPL(%p-%s): removing EP(%p).\n",
     156            instance, instance->name, ep);
    148157
    149158        const char *qpos = NULL;
     
    163172        write_barrier();
    164173
    165         usb_log_debug("HCD EP(%p) removed (%s) from %s, horizontal %x.\n",
    166             ep, qpos, instance->name, ep->qh->horizontal);
     174        usb_log_debug("EPL(%p-%s): EP(%p) removed (%s), horizontal %x.\n",
     175            instance, instance->name,  ep, qpos, ep->qh->horizontal);
    167176
    168177        /* Remove from the endpoint list */
Note: See TracChangeset for help on using the changeset viewer.