diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-08-17 08:29:22 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-08-17 08:29:22 +0000 |
commit | 5c1d97100348ef19878fa14671a9b70f3d963ed4 (patch) | |
tree | 21deb15a05b41db09534fc275db617c0dd63cb2c /usr.bin/usbhidctl | |
parent | ec18da7c046b86a4f22c1e1b8f860eadb84f31e2 (diff) | |
download | src-5c1d97100348ef19878fa14671a9b70f3d963ed4.tar.gz src-5c1d97100348ef19878fa14671a9b70f3d963ed4.zip |
Include item position in report descriptor dump in usbhidctl(1).
Submitted by: Kevin Zheng <kevinz5000@gmail.com>
PR: 239918
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=351167
Diffstat (limited to 'usr.bin/usbhidctl')
-rw-r--r-- | usr.bin/usbhidctl/usbhid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c index 58a8ae09c9e4..ce28de4cce9d 100644 --- a/usr.bin/usbhidctl/usbhid.c +++ b/usr.bin/usbhidctl/usbhid.c @@ -202,8 +202,8 @@ dumpitem(const char *label, struct hid_item *h) { if ((h->flags & HIO_CONST) && !verbose) return; - printf("%s rid=%d size=%d count=%d page=%s usage=%s%s%s", label, - h->report_ID, h->report_size, h->report_count, + printf("%s rid=%d pos=%d size=%d count=%d page=%s usage=%s%s%s", label, + h->report_ID, h->pos, h->report_size, h->report_count, hid_usage_page(HID_PAGE(h->usage)), hid_usage_in_page(h->usage), h->flags & HIO_CONST ? " Const" : "", |