Changeset f90c0d6 in mainline


Ignore:
Timestamp:
2011-05-07T09:50:39Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc02b83
Parents:
1c3fcf9
Message:

Small fixes

Bad printf directive (again) and uninitialized variable.

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/mouse/mousedev.c

    r1c3fcf9 rf90c0d6  
    309309         * Wheel
    310310         */
    311         int wheel;
     311        int wheel = 0;
    312312       
    313313        path = usb_hid_report_path();
  • uspace/lib/usb/src/hiddescriptor.c

    r1c3fcf9 rf90c0d6  
    656656
    657657                usb_log_debug("\t\tOFFSET: %X\n", report_item->offset);
    658                 usb_log_debug("\t\tSIZE: %X\n", report_item->size);                             
     658                usb_log_debug("\t\tSIZE: %zu\n", report_item->size);                           
    659659                usb_log_debug("\t\tLOGMIN: %d\n", report_item->logical_minimum);
    660660                usb_log_debug("\t\tLOGMAX: %d\n", report_item->logical_maximum);               
     
    695695                usb_log_debug("Report ID: %d\n", report_des->report_id);
    696696                usb_log_debug("\tType: %d\n", report_des->type);
    697                 usb_log_debug("\tLength: %d\n", report_des->bit_length);               
    698                 usb_log_debug("\tItems: %d\n", report_des->item_length);               
     697                usb_log_debug("\tLength: %zu\n", report_des->bit_length);               
     698                usb_log_debug("\tItems: %zu\n", report_des->item_length);               
    699699
    700700                usb_hid_descriptor_print_list(&report_des->report_items);
Note: See TracChangeset for help on using the changeset viewer.