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/ehci/endpoint_list.c

    rc1a966e ra1732929  
    9797        assert(ep);
    9898        assert(ep->qh);
    99         usb_log_debug2("EPL(%p-%s): Append endpoint(%p).\n",
     99        usb_log_debug2("EPL(%p-%s): Append endpoint(%p).",
    100100            instance, instance->name, ep);
    101101
     
    128128        ehci_endpoint_t *first = ehci_endpoint_list_instance(
    129129            list_first(&instance->endpoint_list));
    130         usb_log_debug("EPL(%p-%s): EP(%p) added to list, first is %p(%p).\n",
     130        usb_log_debug("EPL(%p-%s): EP(%p) added to list, first is %p(%p).",
    131131            instance, instance->name, ep, first, first->qh);
    132132        if (last_qh == instance->list_head) {
    133                 usb_log_debug2("EPL(%p-%s): head EP(%p-%"PRIxn"): %x:%x.\n",
     133                usb_log_debug2("EPL(%p-%s): head EP(%p-%"PRIxn"): %x:%x.",
    134134                    instance, instance->name, last_qh,
    135135                    addr_to_phys(instance->list_head),
     
    153153        fibril_mutex_lock(&instance->guard);
    154154
    155         usb_log_debug2("EPL(%p-%s): removing EP(%p).\n",
     155        usb_log_debug2("EPL(%p-%s): removing EP(%p).",
    156156            instance, instance->name, ep);
    157157
     
    172172        write_barrier();
    173173
    174         usb_log_debug("EPL(%p-%s): EP(%p) removed (%s), horizontal %x.\n",
     174        usb_log_debug("EPL(%p-%s): EP(%p) removed (%s), horizontal %x.",
    175175            instance, instance->name,  ep, qpos, ep->qh->horizontal);
    176176
Note: See TracChangeset for help on using the changeset viewer.