Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2016 18:26:26 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r310280 - stable/10/lib/libusb
Message-ID:  <201612191826.uBJIQQXV007291@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Dec 19 18:26:26 2016
New Revision: 310280
URL: https://svnweb.freebsd.org/changeset/base/310280

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/10/lib/libusb/libusb20_ugen20.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libusb/libusb20_ugen20.c
==============================================================================
--- stable/10/lib/libusb/libusb20_ugen20.c	Mon Dec 19 17:31:34 2016	(r310279)
+++ stable/10/lib/libusb/libusb20_ugen20.c	Mon Dec 19 18:26:26 2016	(r310280)
@@ -214,8 +214,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:



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