Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 2016 14:58:20 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295923 - head/sys/dev/usb
Message-ID:  <201602231458.u1NEwK1G023123@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602231458.u1NEwK1G023123>