From ecc7ce0f3ebaf41be0aaae5b6b19f31c14bf10de Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Tue, 23 Feb 2016 14:58:20 +0000 Subject: Be more verbose when truncating number of HID items. Suggested by: Larry Rosenman MFC after: 1 week --- sys/dev/usb/usb_hid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb/usb_hid.c') 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; -- cgit v1.2.3