Changes in uspace/drv/hid/usbhid/kbd/kbdrepeat.c [a1732929:53b9f2c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/kbd/kbdrepeat.c
ra1732929 r53b9f2c 69 69 unsigned int delay = 0; 70 70 71 usb_log_debug("Starting autorepeat loop. ");71 usb_log_debug("Starting autorepeat loop.\n"); 72 72 73 73 while (true) { 74 74 /* Check if the kbd structure is usable. */ 75 75 if (!usb_kbd_is_initialized(kbd)) { 76 usb_log_warning("kbd not ready, exiting autorepeat. ");76 usb_log_warning("kbd not ready, exiting autorepeat.\n"); 77 77 return; 78 78 } … … 82 82 if (kbd->repeat.key_new > 0) { 83 83 if (kbd->repeat.key_new == kbd->repeat.key_repeated) { 84 usb_log_debug2("Repeating key: %u. ",84 usb_log_debug2("Repeating key: %u.\n", 85 85 kbd->repeat.key_repeated); 86 86 usb_kbd_push_ev(kbd, KEY_PRESS, … … 88 88 delay = kbd->repeat.delay_between; 89 89 } else { 90 usb_log_debug2("New key to repeat: %u. ",90 usb_log_debug2("New key to repeat: %u.\n", 91 91 kbd->repeat.key_new); 92 92 kbd->repeat.key_repeated = kbd->repeat.key_new; … … 95 95 } else { 96 96 if (kbd->repeat.key_repeated > 0) { 97 usb_log_debug2("Stopping to repeat key: %u. ",97 usb_log_debug2("Stopping to repeat key: %u.\n", 98 98 kbd->repeat.key_repeated); 99 99 kbd->repeat.key_repeated = 0; … … 119 119 int usb_kbd_repeat_fibril(void *arg) 120 120 { 121 usb_log_debug("Autorepeat fibril spawned. ");121 usb_log_debug("Autorepeat fibril spawned.\n"); 122 122 123 123 if (arg == NULL) { 124 usb_log_error("No device! ");124 usb_log_error("No device!\n"); 125 125 return EINVAL; 126 126 }
Note:
See TracChangeset
for help on using the changeset viewer.