From 7b3fe23be102eb1ccfb37557ec6fe7eeb7eeab04 Mon Sep 17 00:00:00 2001 From: hselasky Date: Mon, 7 Mar 2016 09:39:35 +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/9@296445 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 c201bb4d2..c8a5992c4 100644 --- a/sys/dev/usb/usb_hid.c +++ b/sys/dev/usb/usb_hid.c @@ -353,7 +353,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