Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2019 08:29:23 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351167 - head/usr.bin/usbhidctl
Message-ID:  <201908170829.x7H8TNbB042451@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sat Aug 17 08:29:22 2019
New Revision: 351167
URL: https://svnweb.freebsd.org/changeset/base/351167

Log:
  Include item position in report descriptor dump in usbhidctl(1).
  
  Submitted by:	Kevin Zheng <kevinz5000@gmail.com>
  PR:		239918
  MFC after:	1 week

Modified:
  head/usr.bin/usbhidctl/usbhid.c

Modified: head/usr.bin/usbhidctl/usbhid.c
==============================================================================
--- head/usr.bin/usbhidctl/usbhid.c	Sat Aug 17 06:47:43 2019	(r351166)
+++ head/usr.bin/usbhidctl/usbhid.c	Sat Aug 17 08:29:22 2019	(r351167)
@@ -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" : "",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908170829.x7H8TNbB042451>