Ignore:
Timestamp:
2018-01-15T17:04:34Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
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)
Message:

usb: unified logging

Use logger instead of printf. Logger adds newlines automatically.

File:
1 edited

Legend:

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

    rc1a966e ra1732929  
    5757        instance->list_head = malloc32(sizeof(ed_t));
    5858        if (!instance->list_head) {
    59                 usb_log_error("Failed to allocate list head.\n");
     59                usb_log_error("Failed to allocate list head.");
    6060                return ENOMEM;
    6161        }
    6262        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 ")).",
    6464            name, instance->list_head, instance->list_head_pa);
    6565
     
    9696        assert(instance);
    9797        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);
    9999
    100100        fibril_mutex_lock(&instance->guard);
     
    126126        ohci_endpoint_t *first = list_get_instance(
    127127            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).",
    129129                ep, instance->name, first, first->ed);
    130130        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.",
    132132                    instance->name, last_ed, instance->list_head_pa,
    133133                    last_ed->status, last_ed->td_tail, last_ed->td_head,
     
    151151        fibril_mutex_lock(&instance->guard);
    152152
    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);
    154154
    155155        const char *qpos = NULL;
     
    171171        write_barrier();
    172172
    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.",
    174174            ep, qpos, instance->name, ep->ed->next);
    175175
Note: See TracChangeset for help on using the changeset viewer.