st/prober: Print serial, product and manufacturer from libuvc

This commit is contained in:
Jakob Bornecrantz 2020-04-02 23:44:33 +01:00
parent 1b7b8c163f
commit 96edbd9249

View file

@ -68,7 +68,6 @@ p_libuvc_probe(struct prober *p)
uint8_t addr = uvc_get_device_address(device);
uint16_t vendor = desc->idVendor;
uint16_t product = desc->idProduct;
uvc_free_device_descriptor(desc);
ret = p_dev_get_usb_dev(p, bus, addr, vendor, product, &pdev);
@ -78,8 +77,14 @@ p_libuvc_probe(struct prober *p)
"\t\tvendor_id: %04x\n"
"\t\tproduct_id: %04x\n"
"\t\tbus: %i\n"
"\t\taddr: %i",
(void *)pdev, ret, vendor, product, bus, addr);
"\t\taddr: %i\n"
"\t\tserial: %s\n"
"\t\tmanuf: %s\n"
"\t\tproduct: %s",
(void *)pdev, ret, vendor, product, bus, addr,
desc->serialNumber, desc->manufacturer, desc->product);
uvc_free_device_descriptor(desc);
if (ret != 0) {
P_ERROR(p, "p_dev_get_usb_device failed!");