svn commit: r295923 - head/sys/dev/usb

Hans Petter Selasky hselasky at FreeBSD.org
Tue Feb 23 14:58:21 UTC 2016


Author: hselasky
Date: Tue Feb 23 14:58:20 2016
New Revision: 295923
URL: https://svnweb.freebsd.org/changeset/base/295923

Log:
  Be more verbose when truncating number of HID items.
  
  Suggested by:	Larry Rosenman <ler at lerctr.org>
  MFC after:	1 week

Modified:
  head/sys/dev/usb/usb_hid.c

Modified: head/sys/dev/usb/usb_hid.c
==============================================================================
--- head/sys/dev/usb/usb_hid.c	Tue Feb 23 14:29:22 2016	(r295922)
+++ head/sys/dev/usb/usb_hid.c	Tue Feb 23 14:58:20 2016	(r295923)
@@ -354,7 +354,8 @@ hid_get_item(struct hid_data *s, struct 
 					/* 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;


More information about the svn-src-head mailing list