summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-10 09:48:05 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-10 09:48:05 +0000
commit9bdcf4e2b9655c9a321ab3931202bd3251504b2d (patch)
tree636745d06cddc861425c7022996c1bf3a6392fcc /sys/dev
parentf24eaf7f4c03c54bda7d38f1e5f48feb14f1eb63 (diff)
Make this compile with HIDKBD_DEBUG defined.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hid/hidkbd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/hid/hidkbd.c b/sys/dev/hid/hidkbd.c
index 6876497ff00..7a07ba5566b 100644
--- a/sys/dev/hid/hidkbd.c
+++ b/sys/dev/hid/hidkbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hidkbd.c,v 1.2 2017/03/11 11:55:03 mpi Exp $ */
+/* $OpenBSD: hidkbd.c,v 1.3 2017/05/10 09:48:04 mpi Exp $ */
/* $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -128,10 +128,10 @@ hidkbdtracedump(void)
for (i = 0; i < HIDKBDTRACESIZE; i++) {
struct hidkbdtraceinfo *p =
&hidkbdtracedata[(i+hidkbdtraceindex)%HIDKBDTRACESIZE];
- printf("%lld.%06ld: mod=0x%02x key0=0x%02x key1=0x%02x "
+ printf("%lld.%06ld: key0=0x%02x key1=0x%02x "
"key2=0x%02x key3=0x%02x\n",
(long long)p->tv.tv_sec, p->tv.tv_usec,
- p->ud.modifiers, p->ud.keycode[0], p->ud.keycode[1],
+ p->ud.keycode[0], p->ud.keycode[1],
p->ud.keycode[2], p->ud.keycode[3]);
}
}
@@ -320,10 +320,10 @@ hidkbd_decode(struct hidkbd *kbd, struct hidkbd_data *ud)
if (hidkbddebug > 5) {
struct timeval tv;
microtime(&tv);
- DPRINTF((" at %lld.%06ld mod=0x%02x key0=0x%02x key1=0x%02x "
+ DPRINTF((" at %lld.%06ld key0=0x%02x key1=0x%02x "
"key2=0x%02x key3=0x%02x\n",
(long long)tv.tv_sec, tv.tv_usec,
- ud->modifiers, ud->keycode[0], ud->keycode[1],
+ ud->keycode[0], ud->keycode[1],
ud->keycode[2], ud->keycode[3]));
}
#endif