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 07:59:38 -0600 |
commit | 556cd09885bec3f69ba78228fe4e46dc1dad145b (patch) | |
tree | 7dc5acbacb95f22e69d69c4d1eb588bf1909e5cf /hw/usb-msd.c | |
parent | 063846984ce7eb1c1ddce6dda39b662c64a80dc0 (diff) |
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>
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r-- | hw/usb-msd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c index b9f6588a7a..1fb62ad13c 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -591,7 +591,7 @@ static USBDevice *usb_msd_init(const char *filename) } /* create guest device */ - dev = usb_create(NULL /* FIXME */, "QEMU USB MSD"); + dev = usb_create(NULL /* FIXME */, "usb-storage"); qdev_prop_set_drive(&dev->qdev, "drive", dinfo); if (qdev_init(&dev->qdev) < 0) return NULL; @@ -601,8 +601,7 @@ static USBDevice *usb_msd_init(const char *filename) static struct USBDeviceInfo msd_info = { .product_desc = "QEMU USB MSD", - .qdev.name = "QEMU USB MSD", - .qdev.alias = "usb-storage", + .qdev.name = "usb-storage", .qdev.size = sizeof(MSDState), .init = usb_msd_initfn, .handle_packet = usb_generic_handle_packet, |