svn commit: r296445 - stable/9/sys/dev/usb

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


Author: hselasky
Date: Mon Mar  7 09:39:35 2016
New Revision: 296445
URL: https://svnweb.freebsd.org/changeset/base/296445

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

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

Modified: stable/9/sys/dev/usb/usb_hid.c
==============================================================================
--- stable/9/sys/dev/usb/usb_hid.c	Mon Mar  7 09:37:07 2016	(r296444)
+++ stable/9/sys/dev/usb/usb_hid.c	Mon Mar  7 09:39:35 2016	(r296445)
@@ -353,7 +353,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-stable-9 mailing list