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:
parent
51c3eddf95
commit
204e226f14
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user