Changeset 1f383dde in mainline for uspace/drv/usbkbd/descparser.c


Ignore:
Timestamp:
2011-01-07T13:54:52Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
Children:
d99120f
Parents:
82122f3
Message:

Debugging

  • disabled some output from other parts (virtual hcd)
  • added some debug output to descparser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/descparser.c

    r82122f3 r1f383dde  
    222222                            * sizeof(usb_standard_hid_class_descriptor_info_t);
    223223                       
     224                        size_t tmp = (size_t)(pos - data);
     225                        printf("Parser position: %d, remaining: %d\n",
     226                               pos - data, size - tmp);
     227                       
     228                        /*
     229                         * TODO: this is not good, only 7 bytes remaining,
     230                         *       something is wrong!
     231                         */
     232                       
    224233                        hid_i = 0;
    225234                       
     
    241250                        uint16_t length =
    242251                            actual_iface->class_desc_info[hid_i].length;
     252                       
     253                        printf("Saving class-specific descriptor #%d\n", hid_i);
    243254                       
    244255                        actual_iface->class_descs[hid_i] =
     
    379390{
    380391        printf("Class-specific descriptor #%d (type: %u)\n", index, type);
     392        assert(d != NULL);
    381393        dump_buffer("", d, size);
    382394}
     
    398410                dump_standard_hid_descriptor_header(&iface_d->hid_desc);
    399411                printf("\n");
     412//              printf("%d class-specific descriptors\n",
     413//                  iface_d->hid_desc.class_desc_count);
    400414                for (j = 0; j < iface_d->hid_desc.class_desc_count; ++j) {
    401415                        dump_standard_hid_class_descriptor_info(
Note: See TracChangeset for help on using the changeset viewer.