Changeset 1f383dde in mainline


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, topic/simplify-dev-export
Children:
d99120f
Parents:
82122f3
Message:

Debugging

  • disabled some output from other parts (virtual hcd)
  • added some debug output to descparser
Location:
uspace
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/virtusbkbd/virtusbkbd.c

    r82122f3 r1f383dde  
    271271        printf("%s: Simulating keyboard events...\n", NAME);
    272272        fibril_sleep(10);
    273         while (1) {
     273        //while (1) {
    274274                kb_process_events(&status, keyboard_events, keyboard_events_count,
    275275                        on_keyboard_change);
    276         }
     276        //}
    277277       
    278278        printf("%s: Terminating...\n", NAME);
  • uspace/drv/usbhub/utils.c

    r82122f3 r1f383dde  
    691691                target.address = hub_info->usb_device->address;
    692692                target.endpoint = 1;/// \TODO get from endpoint descriptor
    693                 printf("[usb_hub] checking changes for hub at addr %d\n",
    694                     target.address);
     693//              printf("[usb_hub] checking changes for hub at addr %d\n",
     694//                  target.address);
    695695
    696696                size_t port_count = hub_info->port_count;
  • 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(
  • uspace/drv/usbkbd/main.c

    r82122f3 r1f383dde  
    100100        free(descriptors);
    101101       
     102        //usbkbd_print_config(kbd_dev->conf);
     103       
    102104        return rc;
    103105}
  • uspace/drv/vhc/hcd.c

    r82122f3 r1f383dde  
    104104        sleep(5);
    105105
    106         usb_dprintf_enable(NAME, 0);
     106        usb_dprintf_enable(NAME, -1);
    107107
    108108        printf(NAME ": virtual USB host controller driver.\n");
  • uspace/srv/devman/main.c

    r82122f3 r1f383dde  
    477477        }
    478478
    479         printf(NAME ": devman_forward: forward connection to device %s to "
    480             "driver %s.\n", dev->pathname, driver->name);
     479//      printf(NAME ": devman_forward: forward connection to device %s to "
     480//          "driver %s.\n", dev->pathname, driver->name);
    481481        ipc_forward_fast(iid, driver->phone, method, dev->handle, 0, IPC_FF_NONE);
    482482}
Note: See TracChangeset for help on using the changeset viewer.