diff options
author | imp <imp@FreeBSD.org> | 2007-12-21 03:40:36 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-12-21 03:40:36 +0000 |
commit | 88bf38f550e2894141fe36ad70d5a218d3b1b8db (patch) | |
tree | 93ec3f69b9f0ac3bbd29ad860f7426353d6fd274 /usr.bin/usbhidctl | |
parent | c6d4b1ee92042933c2739e5fba2f06e3a280837e (diff) | |
download | FreeBSD-src-88bf38f550e2894141fe36ad70d5a218d3b1b8db.zip FreeBSD-src-88bf38f550e2894141fe36ad70d5a218d3b1b8db.tar.gz |
usbhidctl appears to not report features and write size correctly
This turns out to be due to an argument botch for hid_report_size.
The PR contained patches to fix the argument botch.
Submitted by: Maurice Castro
PR: usb/118915
Diffstat (limited to 'usr.bin/usbhidctl')
-rw-r--r-- | usr.bin/usbhidctl/usbhid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c index 08968c2..ff7c544 100644 --- a/usr.bin/usbhidctl/usbhid.c +++ b/usr.bin/usbhidctl/usbhid.c @@ -155,13 +155,13 @@ dumpitems(report_desc_t r) } } hid_end_parse(d); - size = hid_report_size(r, 0, hid_input); + size = hid_report_size(r, hid_input, 0); printf("Total input size %d bytes\n", size); - size = hid_report_size(r, 0, hid_output); + size = hid_report_size(r, hid_output, 0); printf("Total output size %d bytes\n", size); - size = hid_report_size(r, 0, hid_feature); + size = hid_report_size(r, hid_feature, 0); printf("Total feature size %d bytes\n", size); } @@ -228,7 +228,7 @@ dumpdata(int f, report_desc_t rd, int loop) } hid_end_parse(d); rev(&hids); - dlen = hid_report_size(rd, 0, hid_input); + dlen = hid_report_size(rd, hid_input, 0); dbuf = malloc(dlen); if (!loop) if (ioctl(f, USB_SET_IMMED, &one) < 0) { |