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:
hselasky 2016-02-23 14:58:20 +00:00
parent 51c3eddf95
commit 204e226f14

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;