Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hpc if catch unknown scancode, print its row and col...



details:   https://anonhg.NetBSD.org/src/rev/53b6c5c9a502
branches:  trunk
changeset: 504400:53b6c5c9a502
user:      uch <uch%NetBSD.org@localhost>
date:      Thu Mar 01 16:41:36 2001 +0000

description:
if catch unknown scancode, print its row and column.

diffstat:

 sys/dev/hpc/hpckbd.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r e34635c225bd -r 53b6c5c9a502 sys/dev/hpc/hpckbd.c
--- a/sys/dev/hpc/hpckbd.c      Thu Mar 01 16:31:37 2001 +0000
+++ b/sys/dev/hpc/hpckbd.c      Thu Mar 01 16:41:36 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpckbd.c,v 1.1 2001/02/22 18:37:55 uch Exp $ */
+/*     $NetBSD: hpckbd.c,v 1.2 2001/03/01 16:41:36 uch Exp $ */
 
 /*-
  * Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@@ -329,8 +329,11 @@
        }
        
        if ((key = hc->hc_keymap[scancode]) == UNK) {
-               printf("hpckbd: unknown scan code %#x\n", scancode);
-
+#ifdef DEBUG
+               printf("hpckbd: unknown scan code %#x (%d, %d)\n",
+                      scancode, scancode >> 3,
+                      scancode - ((scancode >> 3) << 3));
+#endif /* DEBUG */
                return (0);
        }
 



Home | Main Index | Thread Index | Old Index