printf(" - busid %s (%.4s:%.4s)\n", busid, vendor, product);
}
+static void print_product_name(char *product_name, bool parsable)
+{
+ if (!parsable)
+ printf(" %s\n", product_name);
+}
+
static void print_interface(char *busid, char *driver, bool parsable)
{
if (parsable)
{
char bus_type[] = "usb";
char busid[SYSFS_BUS_ID_SIZE];
+ char product_name[128];
struct sysfs_bus *ubus;
struct sysfs_device *dev;
struct sysfs_device *intf;
goto err_out;
}
+ /* get product name */
+ usbip_names_get_product(product_name, sizeof(product_name),
+ strtol(idVendor->value, NULL, 16),
+ strtol(idProduct->value, NULL, 16));
print_device(dev->bus_id, idVendor->value, idProduct->value,
parsable);
+ print_product_name(product_name, parsable);
for (i = 0; i < atoi(bNumIntfs->value); i++) {
snprintf(busid, sizeof(busid), "%s:%.1s.%d",