aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-02-23 14:58:20 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-02-23 14:58:20 +0000
commitecc7ce0f3ebaf41be0aaae5b6b19f31c14bf10de (patch)
treef682087d6b06b5de773d2a1dd22f11e762adff96
parent48eeabc1a97ce3c9e1a85fde8d24fa9e2efcfca2 (diff)
downloadsrc-ecc7ce0f3ebaf41be0aaae5b6b19f31c14bf10de.tar.gz
src-ecc7ce0f3ebaf41be0aaae5b6b19f31c14bf10de.zip
Be more verbose when truncating number of HID items.
Suggested by: Larry Rosenman <ler@lerctr.org> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=295923
-rw-r--r--sys/dev/usb/usb_hid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c
index e6361a6f1195..dc0ce99facc4 100644
--- a/sys/dev/usb/usb_hid.c
+++ b/sys/dev/usb/usb_hid.c
@@ -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;