1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Be more verbose when truncating number of HID items.

Suggested by:	Larry Rosenman <ler@lerctr.org>
MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2016-02-23 14:58:20 +00:00
parent 48eeabc1a9
commit ecc7ce0f3e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295923

View File

@ -354,7 +354,8 @@ hid_get_item(struct hid_data *s, struct hid_item *h)
/* range check usage count */
if (c->loc.count > 255) {
DPRINTFN(0, "Number of "
"items truncated to 255\n");
"items(%u) truncated to 255\n",
(unsigned)(c->loc.count));
s->ncount = 255;
} else
s->ncount = c->loc.count;