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

Reply via email to