[Bug 239918] usbhidctl(1): include item position in report descriptor dump

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 16 21:46:09 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239918

            Bug ID: 239918
           Summary: usbhidctl(1): include item position in report
                    descriptor dump
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: usb
          Assignee: usb at FreeBSD.org
          Reporter: kevinz5000 at gmail.com

Created attachment 206626
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=206626&action=edit
Patch

Include the item position (h->pos) in the report descriptor dump. This makes
the output of `usbhidctl -r` more useful when many items have unassigned
usages, such as when a device implements register accesses through USB HID.

For example, before the patch:

Input   rid=0 size=8 count=1 page=Consumer usage=Unassigned, logical range
0..255
Input   rid=0 size=8 count=1 page=Consumer usage=Unassigned, logical range
0..255

Both of these items look the same. After the patch:

Input   rid=0 pos=16 size=8 count=1 page=Consumer usage=Unassigned, logical
range 0..255
Input   rid=0 pos=24 size=8 count=1 page=Consumer usage=Unassigned, logical
range 0..255

These are obviously different items.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-usb mailing list