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 08:17:28 -0600 |
commit | 9df9eeeb18d93acf21e43710cf8aa2be8eff7a8a (patch) | |
tree | a0c311abacd4e9ca26936998614494600153dd7e /usb-linux.c | |
parent | 5b6321a237e00e7642f0c205e13a1382988e59c2 (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>
(cherry picked from commit 0fe6d12e0bc752c29a93ac83a274e3650d457069)
Diffstat (limited to 'usb-linux.c')
-rw-r--r-- | usb-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usb-linux.c b/usb-linux.c index 285ac227a3..67735d338c 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -933,10 +933,10 @@ static int usb_host_open(USBHostDevice *dev, int bus_num, dev->dev.speed = USB_SPEED_HIGH; if (!prod_name || prod_name[0] == '\0') - snprintf(dev->dev.devname, sizeof(dev->dev.devname), + snprintf(dev->dev.product_desc, sizeof(dev->dev.product_desc), "host:%d.%d", bus_num, addr); else - pstrcpy(dev->dev.devname, sizeof(dev->dev.devname), + pstrcpy(dev->dev.product_desc, sizeof(dev->dev.product_desc), prod_name); /* USB devio uses 'write' flag to check for async completions */ |