Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4125b7d in mainline for uspace/drv/usbhid/kbd/kbddev.c


Ignore:
Timestamp:
2011-04-18T20:06:55Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
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?

File:
1 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        }
Note: See TracChangeset for help on using the changeset viewer.