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 <l...@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;
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to