#ifdeffed out some more debug stuff

This commit is contained in:
Ben Gras 2006-02-06 15:03:51 +00:00
parent dc410a6245
commit 13e0afef7b

View file

@ -759,7 +759,9 @@ PRIVATE int kbc_read()
struct micro_state ms; struct micro_state ms;
#endif #endif
#if DEBUG
printf("in kbc_read\n"); printf("in kbc_read\n");
#endif
/* Wait at most 1 second for a byte from the keyboard or /* Wait at most 1 second for a byte from the keyboard or
* the kbd controller, return -1 on a timeout. * the kbd controller, return -1 on a timeout.
@ -777,13 +779,17 @@ PRIVATE int kbc_read()
sys_inb(KEYBD, &byte); sys_inb(KEYBD, &byte);
if (st & KB_AUX_BYTE) if (st & KB_AUX_BYTE)
{ {
#if DEBUG
printf( printf(
"keyboard`kbc_read: ignoring byte (0x%x) from aux device.\n", "keyboard`kbc_read: ignoring byte (0x%x) from aux device.\n",
byte); byte);
#endif
continue; continue;
} }
#if DEBUG
printf("keyboard`kbc_read: returning byte 0x%x\n", printf("keyboard`kbc_read: returning byte 0x%x\n",
byte); byte);
#endif
return byte; return byte;
} }
} }