Changes in / [8cbd512:3facf63a] in mainline
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.c
r8cbd512 r3facf63a 490 490 usb_hid_dev_t *hid_dev = (usb_hid_dev_t *)arg; 491 491 492 int allocated = (hid_dev->input_report != NULL);492 int allocated = (hid_dev->input_report == NULL); 493 493 494 494 if (!allocated -
uspace/drv/usbhub/usbhub.c
r8cbd512 r3facf63a 411 411 static int usb_process_hub_power_change(usb_hub_info_t * hub_info, 412 412 usb_hub_status_t status) { 413 int opResult = EOK;413 int opResult; 414 414 if (!usb_hub_is_status(status,USB_HUB_FEATURE_HUB_LOCAL_POWER)) { 415 415 //restart power on hub … … 431 431 } 432 432 } 433 } 434 if(opResult!=EOK){ 435 return opResult;//no feature clearing 436 } 437 opResult = usb_hub_clear_feature(hub_info->control_pipe, 438 USB_HUB_FEATURE_C_HUB_LOCAL_POWER); 433 opResult = usb_hub_clear_feature(hub_info->control_pipe, 434 USB_HUB_FEATURE_C_HUB_LOCAL_POWER); 439 435 if (opResult != EOK) { 440 usb_log_error("cannnot clear hub power change flag: " 441 "%d\n", 442 opResult); 436 usb_log_error("cannnot clear hub power change flag: " 437 "%d\n", 438 opResult); 439 } 443 440 } 444 441 return opResult; -
uspace/lib/usb/src/hiddescriptor.c
r8cbd512 r3facf63a 629 629 630 630 usb_log_debug("\t\tOFFSET: %X\n", report_item->offset); 631 usb_log_debug("\t\tSIZE: % zu\n", report_item->size);631 usb_log_debug("\t\tSIZE: %X\n", report_item->size); 632 632 usb_log_debug("\t\tLOGMIN: %d\n", report_item->logical_minimum); 633 633 usb_log_debug("\t\tLOGMAX: %d\n", report_item->logical_maximum); … … 666 666 usb_log_debug("Report ID: %d\n", report_des->report_id); 667 667 usb_log_debug("\tType: %d\n", report_des->type); 668 usb_log_debug("\tLength: % zu\n", report_des->bit_length);669 usb_log_debug("\tItems: % zu\n", report_des->item_length);668 usb_log_debug("\tLength: %d\n", report_des->bit_length); 669 usb_log_debug("\tItems: %d\n", report_des->item_length); 670 670 671 671 usb_hid_descriptor_print_list(&report_des->report_items);
Note:
See TracChangeset
for help on using the changeset viewer.