Changeset 4abc304 in mainline for uspace/drv/uhci-hcd/transfer_list.c


Ignore:
Timestamp:
2011-02-28T11:55:36Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dced52a
Parents:
299d53e
Message:

Debug output refactored

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/transfer_list.c

    r299d53e r4abc304  
    7070        assert(instance);
    7171        assert(batch);
    72         usb_log_debug("Adding batch(%p) to queue %s.\n", batch, instance->name);
     72        usb_log_debug2("Adding batch(%p) to queue %s.\n", batch, instance->name);
    7373
    7474        uint32_t pa = (uintptr_t)addr_to_phys(batch->qh);
     
    8484                list_append(&batch->link, &instance->batch_list);
    8585                instance->queue_head->element = pa;
    86                 usb_log_debug2("Added batch(%p) to queue %s first.\n",
     86                usb_log_debug("Batch(%p) added to queue %s first.\n",
    8787                        batch, instance->name);
    8888                fibril_mutex_unlock(&instance->guard);
     
    9797        queue_head_append_qh(last->qh, pa);
    9898        list_append(&batch->link, &instance->batch_list);
    99         usb_log_debug2("Added batch(%p) to queue %s last, first is %p.\n",
     99        usb_log_debug("Batch(%p) added to queue %s last, first is %p.\n",
    100100                batch, instance->name, first );
    101101        fibril_mutex_unlock(&instance->guard);
     
    109109        assert(instance->queue_head);
    110110        assert(batch->qh);
     111        usb_log_debug2("Removing batch(%p) from queue %s.\n", batch, instance->name);
    111112
    112113        /* I'm the first one here */
    113114        if (batch->link.prev == &instance->batch_list) {
    114                 usb_log_debug("Removing batch %p was first, next element %x.\n",
    115                         batch, batch->qh->next_queue);
     115                usb_log_debug("Batch(%p) removed (FIRST) from queue %s, next element %x.\n",
     116                        batch, instance->name, batch->qh->next_queue);
    116117                instance->queue_head->element = batch->qh->next_queue;
    117118        } else {
    118                 usb_log_debug("Removing batch %p was NOT first, next element %x.\n",
    119                         batch, batch->qh->next_queue);
     119                usb_log_debug("Batch(%p) removed (NOT FIRST) from queue, next element %x.\n",
     120                        batch, instance->name, batch->qh->next_queue);
    120121                batch_t *prev = list_get_instance(batch->link.prev, batch_t, link);
    121122                prev->qh->next_queue = batch->qh->next_queue;
Note: See TracChangeset for help on using the changeset viewer.