xusb: Print total length of configuration descriptor
authorTormod Volden <debian.tormod@gmail.com>
Sun, 31 Oct 2021 17:32:25 +0000 (18:32 +0100)
committerTormod Volden <debian.tormod@gmail.com>
Sun, 31 Oct 2021 17:32:25 +0000 (18:32 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
examples/xusb.c
libusb/version_nano.h

index 45d2e356e207ddbe8dc5b3de88b4075c9dff447a..5c65298747be113930545768c9be876eb236133e 100644 (file)
@@ -863,6 +863,7 @@ static int test_device(uint16_t vid, uint16_t pid)
 
        printf("\nReading first configuration descriptor:\n");
        CALL_CHECK_CLOSE(libusb_get_config_descriptor(dev, 0, &conf_desc), handle);
+       printf("              total length: %d\n", conf_desc->wTotalLength);
        printf("         descriptor length: %d\n", conf_desc->bLength);
        nb_ifaces = conf_desc->bNumInterfaces;
        printf("             nb interfaces: %d\n", nb_ifaces);
index f526fcf299d22e830962269c7ac0d2c8a70f9c89..9a3d393345ee9e4349547a2a569cbd4ca4855abe 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11665
+#define LIBUSB_NANO 11666