Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Mar 2016 09:39:36 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r296445 - stable/9/sys/dev/usb
Message-ID:  <201603070939.u279daRS057286@repo.freebsd.org>

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



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