diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2016-10-22 14:37:13 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2016-10-22 14:37:13 +0000 |
commit | 0b9cf9729be515a1188d595d1251e8fb59c61ea3 (patch) | |
tree | 7f888c957568bd1a4bf8eab7400b6bce0897181a /lib/libusb/libusb20_ugen20.c | |
parent | 8f34671a5e3aa4c7b98f4140255735e4360038f1 (diff) | |
download | src-0b9cf9729be515a1188d595d1251e8fb59c61ea3.tar.gz src-0b9cf9729be515a1188d595d1251e8fb59c61ea3.zip |
Fix libusb20_dev_get_desc(3) to use the "vendor product" order, not
"product vendor". This is consistent with how it's generally done.
The ordering is visible eg in usbconfig(8) output.
Note to self: MFC this to 9 and 8.
Reviewed by: hselasky@
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D8258
Notes
Notes:
svn path=/head/; revision=307774
Diffstat (limited to 'lib/libusb/libusb20_ugen20.c')
-rw-r--r-- | lib/libusb/libusb20_ugen20.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusb/libusb20_ugen20.c b/lib/libusb/libusb20_ugen20.c index e40bc07e61e0..be2acee7e9e0 100644 --- a/lib/libusb/libusb20_ugen20.c +++ b/lib/libusb/libusb20_ugen20.c @@ -214,8 +214,8 @@ ugen20_enumerate(struct libusb20_device *pdev, const char *id) snprintf(pdev->usb_desc, sizeof(pdev->usb_desc), USB_GENERIC_NAME "%u.%u: <%s %s> at usbus%u", pdev->bus_number, - pdev->device_address, devinfo.udi_product, - devinfo.udi_vendor, pdev->bus_number); + pdev->device_address, devinfo.udi_vendor, + devinfo.udi_product, pdev->bus_number); error = 0; done: |