summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-22 15:10:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-22 15:10:57 +0000
commit745df0d0ed3f778bd125e87bdfc3815cfcb2273e (patch)
tree0a391898bc1287eaee31d1d56c0ee7243390f734 /sys/dev/usb
parent92c3a6b185c40b1334c4d5734428d2f3d1e9fa2a (diff)
handle long long time_t in debug code
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/hidkbd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/hidkbd.c b/sys/dev/usb/hidkbd.c
index fe0f81bf171..b04dd1294ad 100644
--- a/sys/dev/usb/hidkbd.c
+++ b/sys/dev/usb/hidkbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hidkbd.c,v 1.7 2012/07/13 12:33:08 shadchin Exp $ */
+/* $OpenBSD: hidkbd.c,v 1.8 2013/04/22 15:10:56 deraadt Exp $ */
/* $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -134,9 +134,9 @@ hidkbdtracedump(void)
for (i = 0; i < HIDKBDTRACESIZE; i++) {
struct hidkbdtraceinfo *p =
&hidkbdtracedata[(i+hidkbdtraceindex)%HIDKBDTRACESIZE];
- printf("%lu.%06lu: mod=0x%02x key0=0x%02x key1=0x%02x "
+ printf("%lld.%06ld: mod=0x%02x key0=0x%02x key1=0x%02x "
"key2=0x%02x key3=0x%02x\n",
- p->tv.tv_sec, p->tv.tv_usec,
+ (long long)p->tv.tv_sec, p->tv.tv_usec,
p->ud.modifiers, p->ud.keycode[0], p->ud.keycode[1],
p->ud.keycode[2], p->ud.keycode[3]);
}
@@ -337,9 +337,9 @@ hidkbd_decode(struct hidkbd *kbd, struct hidkbd_data *ud)
if (hidkbddebug > 5) {
struct timeval tv;
microtime(&tv);
- DPRINTF((" at %lu.%06lu mod=0x%02x key0=0x%02x key1=0x%02x "
+ DPRINTF((" at %lld.%06ld mod=0x%02x key0=0x%02x key1=0x%02x "
"key2=0x%02x key3=0x%02x\n",
- tv.tv_sec, tv.tv_usec,
+ (long long)tv.tv_sec, tv.tv_usec,
ud->modifiers, ud->keycode[0], ud->keycode[1],
ud->keycode[2], ud->keycode[3]));
}