From 5c1d97100348ef19878fa14671a9b70f3d963ed4 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Sat, 17 Aug 2019 08:29:22 +0000 Subject: [PATCH] Include item position in report descriptor dump in usbhidctl(1). Submitted by: Kevin Zheng PR: 239918 MFC after: 1 week --- usr.bin/usbhidctl/usbhid.c | 4 ++-- 1 file 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" : "",