Changeset d861c22 in mainline


Ignore:
Timestamp:
2011-05-27T07:28:46Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1432fcf3, aaa3d82b
Parents:
f3b39b4
Message:

some little changes

Location:
uspace/lib/usbhid/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hiddescriptor.c

    rf3b39b4 rd861c22  
    944944                usb_log_debug("\tType: %d\n", report_des->type);
    945945                usb_log_debug("\tLength: %zu\n", report_des->bit_length);               
     946                usb_log_debug("\tB Size: %zu\n",
     947                        usb_hid_report_byte_size(report,
     948                                report_des->report_id,
     949                                report_des->type));
    946950                usb_log_debug("\tItems: %zu\n", report_des->item_length);               
    947951
  • uspace/lib/usbhid/src/hidparser.c

    rf3b39b4 rd861c22  
    119119        }
    120120        else {
    121                 if(report_id == 0) {                   
    122                         return ((report_des->bit_length + 7) / 8) ;
    123                 }
    124                 else {
    125                         return 1 + ((report_des->bit_length + 7) / 8);
    126                 }
     121                return ((report_des->bit_length + 7) / 8) ;
    127122        }
    128123}
Note: See TracChangeset for help on using the changeset viewer.