From 5e41731969dd783a14210336ea48a18bbc68ada7 Mon Sep 17 00:00:00 2001 From: hselasky Date: Mon, 7 Mar 2016 09:37:07 +0000 Subject: [PATCH] MFC r295923: Be more verbose when truncating number of HID items. Suggested by: Larry Rosenman git-svn-id: svn://svn.freebsd.org/base/stable/10@296444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/usb/usb_hid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c index e6361a6f1..dc0ce99fa 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; -- 2.45.0