svn commit: r310282 - stable/9/lib/libusb

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Dec 19 18:31:24 UTC 2016


Author: trasz
Date: Mon Dec 19 18:31:22 2016
New Revision: 310282
URL: https://svnweb.freebsd.org/changeset/base/310282

Log:
  MFC r307774:
  
  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.

Modified:
  stable/9/lib/libusb/libusb20_ugen20.c
Directory Properties:
  stable/9/lib/libusb/   (props changed)

Modified: stable/9/lib/libusb/libusb20_ugen20.c
==============================================================================
--- stable/9/lib/libusb/libusb20_ugen20.c	Mon Dec 19 18:27:22 2016	(r310281)
+++ stable/9/lib/libusb/libusb20_ugen20.c	Mon Dec 19 18:31:22 2016	(r310282)
@@ -206,8 +206,8 @@ ugen20_enumerate(struct libusb20_device 
 
 	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:


More information about the svn-src-stable-9 mailing list