summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1997-03-07 10:22:55 +0000
committeryokota <yokota@FreeBSD.org>1997-03-07 10:22:55 +0000
commit8c8965349ae8918a5418c8ab2b62a321b6359481 (patch)
treebda4e42ad029268f575b28480a23a30e3b288063 /sys
parentdafbb728f2f9df8e94dc6bdab0dd581257ee62dc (diff)
downloadFreeBSD-src-8c8965349ae8918a5418c8ab2b62a321b6359481.zip
FreeBSD-src-8c8965349ae8918a5418c8ab2b62a321b6359481.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/kbdio.c8
-rw-r--r--sys/isa/kbdio.c8
2 files changed, 4 insertions, 12 deletions
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);
OpenPOWER on IntegriCloud