From: Ben Gras Date: Mon, 6 Feb 2006 15:03:51 +0000 (+0000) Subject: #ifdeffed out some more debug stuff X-Git-Tag: v3.1.2a~376 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/verify-sign/verify.pl?a=commitdiff_plain;h=13e0afef7b178c1135e7f2480a432764d3ae97c3;p=minix.git #ifdeffed out some more debug stuff --- diff --git a/drivers/tty/keyboard.c b/drivers/tty/keyboard.c index 0505f5867..94ae89b39 100644 --- a/drivers/tty/keyboard.c +++ b/drivers/tty/keyboard.c @@ -759,7 +759,9 @@ PRIVATE int kbc_read() struct micro_state ms; #endif +#if DEBUG printf("in kbc_read\n"); +#endif /* Wait at most 1 second for a byte from the keyboard or * the kbd controller, return -1 on a timeout. @@ -777,13 +779,17 @@ PRIVATE int kbc_read() sys_inb(KEYBD, &byte); if (st & KB_AUX_BYTE) { +#if DEBUG printf( "keyboard`kbc_read: ignoring byte (0x%x) from aux device.\n", byte); +#endif continue; } +#if DEBUG printf("keyboard`kbc_read: returning byte 0x%x\n", byte); +#endif return byte; } }