2008-01-23 Robert Millan <rmh@aybabtu.com>

* term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
        grub_dprintf calls, since they make "debug=all" mode unusable.
        (grub_console_checkkey): Likewise.
This commit is contained in:
robertmh 2008-01-23 12:20:21 +00:00
parent 5882ae4b0e
commit 3ea5268564
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-01-23 Robert Millan <rmh@aybabtu.com>
* term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
grub_dprintf calls, since they make "debug=all" mode unusable.
(grub_console_checkkey): Likewise.
2008-01-23 Robert Millan <rmh@aybabtu.com> 2008-01-23 Robert Millan <rmh@aybabtu.com>
* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add

View file

@ -147,7 +147,9 @@ grub_keyboard_isr (char key)
/* Skip grub_dprintf. */ /* Skip grub_dprintf. */
return; return;
} }
#ifdef DEBUG_AT_KEYBOARD
grub_dprintf ("atkeyb", "Control key 0x%0x was %s\n", key, is_make ? "pressed" : "unpressed"); grub_dprintf ("atkeyb", "Control key 0x%0x was %s\n", key, is_make ? "pressed" : "unpressed");
#endif
} }
/* If there is a raw key pending, return it; otherwise return -1. */ /* If there is a raw key pending, return it; otherwise return -1. */
@ -172,7 +174,9 @@ grub_console_checkkey (void)
key = grub_keyboard_getkey (); key = grub_keyboard_getkey ();
if (key == -1) if (key == -1)
return -1; return -1;
#ifdef DEBUG_AT_KEYBOARD
grub_dprintf ("atkeyb", "Detected key 0x%x\n", key); grub_dprintf ("atkeyb", "Detected key 0x%x\n", key);
#endif
switch (key) switch (key)
{ {
case CAPS_LOCK: case CAPS_LOCK:
@ -180,7 +184,9 @@ grub_console_checkkey (void)
at_keyboard_status &= ~KEYBOARD_STATUS_CAPS_LOCK; at_keyboard_status &= ~KEYBOARD_STATUS_CAPS_LOCK;
else else
at_keyboard_status |= KEYBOARD_STATUS_CAPS_LOCK; at_keyboard_status |= KEYBOARD_STATUS_CAPS_LOCK;
#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 & KEYBOARD_STATUS_CAPS_LOCK));
#endif
key = -1; key = -1;
break; break;
default: default: