diff options
author | 2006-10-27 15:26:25 +0000 | |
---|---|---|
committer | 2006-10-27 15:26:25 +0000 | |
commit | 1da7bb78d79efe5c4b2b36d2e040af41a312a613 (patch) | |
tree | b5de8b6af7bc84f27574c3f06372e37ebe48edab /lib/libusbhid/usage.c | |
parent | Split ruleset manipulation functions out into pf_ruleset.c to allow them to (diff) | |
download | wireguard-openbsd-1da7bb78d79efe5c4b2b36d2e040af41a312a613.tar.xz wireguard-openbsd-1da7bb78d79efe5c4b2b36d2e040af41a312a613.zip |
actually the format strings do come from the usb_hid_usages file;
from janus@errornet.de
Diffstat (limited to 'lib/libusbhid/usage.c')
-rw-r--r-- | lib/libusbhid/usage.c | 4 |
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; } |