diff options
author | Markus Armbruster <armbru@redhat.com> | 2009-12-09 17:07:53 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 08:17:28 -0600 |
commit | 72fbd9f97c11a981d2b235212bce20582f1494a9 (patch) | |
tree | 14e3f598143a08b8c89f83755680f13430218ca2 /usb-bsd.c | |
parent | qdev: Separate USB product description from qdev name (diff) | |
download | qemu-kvm-72fbd9f97c11a981d2b235212bce20582f1494a9.tar.gz qemu-kvm-72fbd9f97c11a981d2b235212bce20582f1494a9.tar.bz2 qemu-kvm-72fbd9f97c11a981d2b235212bce20582f1494a9.zip |
qdev: Replace device names containing whitespace
Device names with whitespace require quoting in the shell and in the
monitor. Some of the offenders are also overly long. Some have a
more convenient alias, some don't.
The place for verbose device names is DeviceInfo member desc. The
name should be short & sweet.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 556cd09885bec3f69ba78228fe4e46dc1dad145b)
Diffstat (limited to 'usb-bsd.c')
-rw-r--r-- | usb-bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -361,7 +361,7 @@ USBDevice *usb_host_device_open(const char *devname) goto fail; } - d = usb_create(NULL /* FIXME */, "USB Host Device"); + d = usb_create(NULL /* FIXME */, "usb-host"); dev = DO_UPCAST(USBHostDevice, dev, d); if (dev_info.udi_speed == 1) @@ -394,7 +394,7 @@ fail: static struct USBDeviceInfo usb_host_dev_info = { .product_desc = "USB Host Device", - .qdev.name = "USB Host Device", + .qdev.name = "usb-host", .qdev.size = sizeof(USBHostDevice), .init = usb_host_initfn, .handle_packet = usb_generic_handle_packet, |