Repair hid_parse_usage_in_page() after format string cleanup: use fmtcheck().
This commit is contained in:
parent
5236b76556
commit
a5fd97f0e6
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: usage.c,v 1.8 2000/10/10 19:23:58 is Exp $ */
|
||||
/* $NetBSD: usage.c,v 1.9 2000/12/28 01:22:40 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org>
|
||||
@ -182,8 +182,9 @@ 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) {
|
||||
sprintf(b, "%s %d",
|
||||
pages[k].page_contents[j].name, i);
|
||||
sprintf(b,
|
||||
fmtcheck(pages[k].page_contents[j].name, "%d"),
|
||||
i);
|
||||
return b;
|
||||
}
|
||||
if (us == i)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: usb_hid_usages,v 1.4 2000/10/10 19:23:58 is Exp $
|
||||
# $NetBSD: usb_hid_usages,v 1.5 2000/12/28 01:22:40 augustss Exp $
|
||||
#
|
||||
# USB HID usage table
|
||||
# Syntax:
|
||||
@ -454,11 +454,11 @@
|
||||
|
||||
9 Button
|
||||
0x00 No Button Pressed
|
||||
* Button
|
||||
* Button %d
|
||||
|
||||
10 Ordinal
|
||||
0x00 Unused
|
||||
* Instance
|
||||
* Instance %d
|
||||
|
||||
11 Telephony
|
||||
0x00 Unassigned
|
||||
@ -854,7 +854,7 @@
|
||||
|
||||
129 Monitor Enumerated Values
|
||||
0x00 unassigned
|
||||
* ENUM
|
||||
* ENUM %d
|
||||
|
||||
130 VESA Virtual Controls
|
||||
0x10 Brightness
|
||||
|
Loading…
Reference in New Issue
Block a user