Changeset 48563a3 in mainline for uspace/drv/uhci-hcd/batch.c


Ignore:
Timestamp:
2011-02-26T12:30:58Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1ae51ae
Parents:
3de48b5
Message:

debug messages reworked

File:
1 edited

Legend:

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

    r3de48b5 r48563a3  
    140140{
    141141        assert(instance);
    142         usb_log_debug2("Checking(%p) %d packet for completion.\n",
     142        usb_log_debug2("Batch(%p) checking %d packet(s) for completion.\n",
    143143            instance, instance->packets);
    144144        instance->transfered_size = 0;
     
    152152                        if (i > 0)
    153153                                instance->transfered_size -= instance->setup_size;
     154                        usb_log_debug("Batch(%p) found error TD(%d):%x.\n",
     155                          instance, i, instance->tds[i].status);
    154156                        return true;
    155157                }
     
    297299
    298300        int err = instance->error;
    299         usb_log_info("Callback IN(%d): %s(%d), %zu.\n", instance->transfer_type,
    300             str_error(err), err, instance->transfered_size);
     301        usb_log_info("Batch(%p) callback IN(type:%d): %s(%d), %zu.\n",
     302            instance, instance->transfer_type, str_error(err), err,
     303            instance->transfered_size);
    301304
    302305        instance->callback_in(instance->fun,
     
    311314
    312315        int err = instance->error;
    313         usb_log_info("Callback OUT(%d): %d.\n", instance->transfer_type, err);
     316        usb_log_info("Batch(%p) callback OUT(type:%d): %s(%d).\n",
     317            instance, instance->transfer_type, str_error(err), err);
    314318        instance->callback_out(instance->fun,
    315319            err, instance->arg);
     
    320324        assert(instance);
    321325        batch_call_in(instance);
    322         usb_log_debug("Disposing batch: %p.\n", instance);
     326        usb_log_debug("Batch(%p) disposing.\n", instance);
    323327        free32(instance->tds);
    324328        free32(instance->qh);
     
    332336        assert(instance);
    333337        batch_call_out(instance);
    334         usb_log_debug("Disposing batch: %p.\n", instance);
     338        usb_log_debug("Batch(%p) disposing.\n", instance);
    335339        free32(instance->tds);
    336340        free32(instance->qh);
Note: See TracChangeset for help on using the changeset viewer.