summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-10-27 15:26:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-10-27 15:26:26 +0000
commita97f7adf3d422b71f3ba5912cbcf0d2b272a3ef4 (patch)
tree1dcd166c2dd2b218ff8feed8ae45be12f6286eb3
parent6f0adce419d913d090d2580787f57dcf3bfc502a (diff)
actually the format strings do come from the usb_hid_usages file;
from janus@errornet.de
-rw-r--r--lib/libusbhid/usage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusbhid/usage.c b/lib/libusbhid/usage.c
index 164e9e6a93b..10042f7a55b 100644
--- a/lib/libusbhid/usage.c
+++ b/lib/libusbhid/usage.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usage.c,v 1.10 2006/03/30 06:39:36 pat Exp $ */
+/* $OpenBSD: usage.c,v 1.11 2006/10/27 15:26:25 deraadt Exp $ */
/* $NetBSD: usage.c,v 1.1 2001/12/28 17:45:27 augustss Exp $ */
/*
@@ -234,7 +234,7 @@ hid_usage_in_page(unsigned int u)
for (j = 0; j < pages[k].pagesize; j++) {
us = pages[k].page_contents[j].usage;
if (us == -1) {
- snprintf(b, sizeof b, "%s %d",
+ snprintf(b, sizeof b,
pages[k].page_contents[j].name, i);
return b;
}