svn commit: r296444 - stable/10/sys/dev/usb

Hans Petter Selasky hselasky at FreeBSD.org
Mon Mar 7 09:37:09 UTC 2016


Author: hselasky
Date: Mon Mar  7 09:37:07 2016
New Revision: 296444
URL: https://svnweb.freebsd.org/changeset/base/296444

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

Modified:
  stable/10/sys/dev/usb/usb_hid.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/usb/usb_hid.c
==============================================================================
--- stable/10/sys/dev/usb/usb_hid.c	Mon Mar  7 09:35:20 2016	(r296443)
+++ stable/10/sys/dev/usb/usb_hid.c	Mon Mar  7 09:37:07 2016	(r296444)
@@ -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-all mailing list