* grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
error when enabling debug.
This commit is contained in:
parent
6d0740e8ca
commit
3414b6c0e2
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
|
||||||
|
|
||||||
|
* grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
|
||||||
|
error when enabling debug.
|
||||||
|
|
||||||
2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
|
2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
|
||||||
|
|
||||||
* configure.ac: Use -melf_*_obsd on openbsd.
|
* configure.ac: Use -melf_*_obsd on openbsd.
|
||||||
|
|
|
@ -541,7 +541,7 @@ grub_at_keyboard_getkey (struct grub_term_input *term __attribute__ ((unused)))
|
||||||
if (code == -1)
|
if (code == -1)
|
||||||
return GRUB_TERM_NO_KEY;
|
return GRUB_TERM_NO_KEY;
|
||||||
#ifdef DEBUG_AT_KEYBOARD
|
#ifdef DEBUG_AT_KEYBOARD
|
||||||
grub_dprintf ("atkeyb", "Detected key 0x%x\n", key);
|
grub_dprintf ("atkeyb", "Detected key 0x%x\n", code);
|
||||||
#endif
|
#endif
|
||||||
switch (code)
|
switch (code)
|
||||||
{
|
{
|
||||||
|
@ -551,7 +551,7 @@ grub_at_keyboard_getkey (struct grub_term_input *term __attribute__ ((unused)))
|
||||||
keyboard_controller_led (led_status);
|
keyboard_controller_led (led_status);
|
||||||
|
|
||||||
#ifdef DEBUG_AT_KEYBOARD
|
#ifdef DEBUG_AT_KEYBOARD
|
||||||
grub_dprintf ("atkeyb", "caps_lock = %d\n", !!(at_keyboard_status & KEYBOARD_STATUS_CAPS_LOCK));
|
grub_dprintf ("atkeyb", "caps_lock = %d\n", !!(at_keyboard_status & GRUB_KEYBOARD_STATUS_CAPS_LOCK));
|
||||||
#endif
|
#endif
|
||||||
return GRUB_TERM_NO_KEY;
|
return GRUB_TERM_NO_KEY;
|
||||||
case GRUB_KEYBOARD_KEY_NUM_LOCK:
|
case GRUB_KEYBOARD_KEY_NUM_LOCK:
|
||||||
|
@ -560,7 +560,7 @@ grub_at_keyboard_getkey (struct grub_term_input *term __attribute__ ((unused)))
|
||||||
keyboard_controller_led (led_status);
|
keyboard_controller_led (led_status);
|
||||||
|
|
||||||
#ifdef DEBUG_AT_KEYBOARD
|
#ifdef DEBUG_AT_KEYBOARD
|
||||||
grub_dprintf ("atkeyb", "num_lock = %d\n", !!(at_keyboard_status & KEYBOARD_STATUS_NUM_LOCK));
|
grub_dprintf ("atkeyb", "num_lock = %d\n", !!(at_keyboard_status & GRUB_KEYBOARD_STATUS_NUM_LOCK));
|
||||||
#endif
|
#endif
|
||||||
return GRUB_TERM_NO_KEY;
|
return GRUB_TERM_NO_KEY;
|
||||||
case GRUB_KEYBOARD_KEY_SCROLL_LOCK:
|
case GRUB_KEYBOARD_KEY_SCROLL_LOCK:
|
||||||
|
|
Loading…
Reference in a new issue