diff options
author | Markus Armbruster <armbru@redhat.com> | 2009-12-09 17:07:51 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 07:59:38 -0600 |
commit | 0fe6d12e0bc752c29a93ac83a274e3650d457069 (patch) | |
tree | c64224edae0e3225075045fef03d60caa6bc1600 /usb-bsd.c | |
parent | ba32edab7fdab0e74b54696942b4127d26861cf6 (diff) |
qdev: Rename USBDevice member devname to product_desc
It's not a device name, it's the USB product description string.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'usb-bsd.c')
-rw-r--r-- | usb-bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -370,10 +370,10 @@ USBDevice *usb_host_device_open(const char *devname) dev->dev.speed = USB_SPEED_FULL - 1; if (strncmp(dev_info.udi_product, "product", 7) != 0) - pstrcpy(dev->dev.devname, sizeof(dev->dev.devname), + pstrcpy(dev->dev.product_desc, sizeof(dev->dev.product_desc), dev_info.udi_product); else - snprintf(dev->dev.devname, sizeof(dev->dev.devname), + snprintf(dev->dev.product_desc, sizeof(dev->dev.product_desc), "host:%s", devname); pstrcpy(dev->devpath, sizeof(dev->devpath), "/dev/"); |