mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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:
parent
48eeabc1a9
commit
ecc7ce0f3e
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue