From 8c8965349ae8918a5418c8ab2b62a321b6359481 Mon Sep 17 00:00:00 2001 From: yokota Date: Fri, 7 Mar 1997 10:22:55 +0000 Subject: Made set_controller_command_byte() less verbose. It used to print a debug message whenever one of lock keys were pressed, if the system was started with the `-v' option. Removed a couple of lines of dead code too. --- sys/i386/isa/kbdio.c | 8 ++------ sys/isa/kbdio.c | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'sys') diff --git a/sys/i386/isa/kbdio.c b/sys/i386/isa/kbdio.c index cf8e265..8786b9d 100644 --- a/sys/i386/isa/kbdio.c +++ b/sys/i386/isa/kbdio.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kbdio.c,v 1.8 1997/02/22 09:36:46 peter Exp $ + * $Id: kbdio.c,v 1.9 1997/03/06 22:34:10 joerg Exp $ */ #include "sc.h" @@ -1027,10 +1027,6 @@ set_controller_command_byte(KBDC p, int mask, int command) return FALSE; command = (kbdcp(p)->command_byte & ~mask) | (command & mask); -#if 0 - if (command == kbdcp(p)->command_byte) - return TRUE; -#endif if (command & KBD_DISABLE_KBD_PORT) { if (!write_controller_command(p, KBDC_DISABLE_KBD_PORT)) return FALSE; @@ -1041,7 +1037,7 @@ set_controller_command_byte(KBDC p, int mask, int command) return FALSE; kbdcp(p)->command_byte = command; - if (verbose || bootverbose) + if (verbose) log(LOG_DEBUG, "kbdio: new command byte:%04x (set_controller...)\n", command); diff --git a/sys/isa/kbdio.c b/sys/isa/kbdio.c index cf8e265..8786b9d 100644 --- a/sys/isa/kbdio.c +++ b/sys/isa/kbdio.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kbdio.c,v 1.8 1997/02/22 09:36:46 peter Exp $ + * $Id: kbdio.c,v 1.9 1997/03/06 22:34:10 joerg Exp $ */ #include "sc.h" @@ -1027,10 +1027,6 @@ set_controller_command_byte(KBDC p, int mask, int command) return FALSE; command = (kbdcp(p)->command_byte & ~mask) | (command & mask); -#if 0 - if (command == kbdcp(p)->command_byte) - return TRUE; -#endif if (command & KBD_DISABLE_KBD_PORT) { if (!write_controller_command(p, KBDC_DISABLE_KBD_PORT)) return FALSE; @@ -1041,7 +1037,7 @@ set_controller_command_byte(KBDC p, int mask, int command) return FALSE; kbdcp(p)->command_byte = command; - if (verbose || bootverbose) + if (verbose) log(LOG_DEBUG, "kbdio: new command byte:%04x (set_controller...)\n", command); -- cgit v1.1