Changeset 4125b7d in mainline for uspace/drv/ohci/batch.c


Ignore:
Timestamp:
2011-04-18T20:06:55Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84a04dd, bbdf09e
Parents:
5ab4a48
Message:

usb_log_printf() checks for printf correctness

It is surprising how many printf warnings simple check could
produce ;-).

Next time, it won't compile. Bad, huh?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/batch.c

    r5ab4a48 r4125b7d  
    141141        assert(data);
    142142        size_t tds = data->td_count;
    143         usb_log_debug("Batch(%p) checking %d td(s) for completion.\n",
     143        usb_log_debug("Batch(%p) checking %zu td(s) for completion.\n",
    144144            instance, tds);
    145145        usb_log_debug("ED: %x:%x:%x:%x.\n",
     
    150150        for (; i < tds; ++i) {
    151151                assert(data->tds[i] != NULL);
    152                 usb_log_debug("TD %d: %x:%x:%x:%x.\n", i,
     152                usb_log_debug("TD %zu: %x:%x:%x:%x.\n", i,
    153153                    data->tds[i]->status, data->tds[i]->cbp, data->tds[i]->next,
    154154                    data->tds[i]->be);
     
    158158                instance->error = td_error(data->tds[i]);
    159159                if (instance->error != EOK) {
    160                         usb_log_debug("Batch(%p) found error TD(%d):%x.\n",
     160                        usb_log_debug("Batch(%p) found error TD(%zu):%x.\n",
    161161                            instance, i, data->tds[i]->status);
    162162                        /* Make sure TD queue is empty (one TD),
Note: See TracChangeset for help on using the changeset viewer.