Changeset 4125b7d in mainline for uspace/drv/usbhid


Ignore:
Timestamp:
2011-04-18T20:06:55Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84a04dd, bbdf09e
Parents:
5ab4a48
Message:

usb_log_printf() checks for printf correctness

It is surprising how many printf warnings simple check could
produce ;-).

Next time, it won't compile. Bad, huh?

Location:
uspace/drv/usbhid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbd/kbddev.c

    r5ab4a48 r4125b7d  
    607607       
    608608        if (count != kbd_dev->key_count) {
    609                 usb_log_warning("Number of received keycodes (%d) differs from"
    610                     " expected number (%d).\n", count, kbd_dev->key_count);
     609                usb_log_warning("Number of received keycodes (%zu) differs from"
     610                    " expected (%zu).\n", count, kbd_dev->key_count);
    611611                return;
    612612        }
  • uspace/drv/usbhid/usbhid.c

    r5ab4a48 r4125b7d  
    197197        size_t size = usb_hid_report_input_length(hid_dev->parser, usage_path,
    198198            mapping->compare);
    199         usb_log_debug("Size of the input report: %d\n", size);
     199        usb_log_debug("Size of the input report: %zuB\n", size);
    200200       
    201201        usb_hid_report_path_free(usage_path);
Note: See TracChangeset for help on using the changeset viewer.