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/uhci/transfer_list.c

    rc1a966e ra1732929  
    5959        instance->queue_head = malloc32(sizeof(qh_t));
    6060        if (!instance->queue_head) {
    61                 usb_log_error("Failed to allocate queue head.\n");
     61                usb_log_error("Failed to allocate queue head.");
    6262                return ENOMEM;
    6363        }
    6464        const uint32_t queue_head_pa = addr_to_phys(instance->queue_head);
    65         usb_log_debug2("Transfer list %s setup with QH: %p (%#" PRIx32" ).\n",
     65        usb_log_debug2("Transfer list %s setup with QH: %p (%#" PRIx32" ).",
    6666            name, instance->queue_head, queue_head_pa);
    6767
     
    120120        fibril_mutex_unlock(&ep->guard);
    121121
    122         usb_log_debug2("Batch %p adding to queue %s.\n",
     122        usb_log_debug2("Batch %p adding to queue %s.",
    123123            uhci_batch, instance->name);
    124124
     
    150150
    151151        usb_log_debug2("Batch %p " USB_TRANSFER_BATCH_FMT
    152             " scheduled in queue %s.\n", uhci_batch,
     152            " scheduled in queue %s.", uhci_batch,
    153153            USB_TRANSFER_BATCH_ARGS(uhci_batch->base), instance->name);
    154154        fibril_mutex_unlock(&instance->guard);
     
    213213        assert(fibril_mutex_is_locked(&instance->guard));
    214214
    215         usb_log_debug2("Batch %p removing from queue %s.\n",
     215        usb_log_debug2("Batch %p removing from queue %s.",
    216216            uhci_batch, instance->name);
    217217
     
    236236        list_remove(&uhci_batch->link);
    237237        usb_log_debug2("Batch %p " USB_TRANSFER_BATCH_FMT " removed (%s) "
    238             "from %s, next: %x.\n", uhci_batch,
     238            "from %s, next: %x.", uhci_batch,
    239239            USB_TRANSFER_BATCH_ARGS(uhci_batch->base),
    240240            qpos, instance->name, uhci_batch->qh->next);
Note: See TracChangeset for help on using the changeset viewer.