]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
usb: Do not prefix error_setg() messages with "Error: "
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Feb 2015 12:28:10 +0000 (13:28 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Feb 2015 09:53:10 +0000 (10:53 +0100)
Because it produces beauties like

    (qemu) usb_add mouse
    Failed to initialize USB device 'usb-mouse': Error: tried to attach usb device QEMU USB Mouse to a bus with no free ports

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/bus.c

index 3f69fe1b23aa0615120ceba7a2b8737b2d1ae98b..3e85afeff5827fb6fa8dd3e9aa6262446e27e063 100644 (file)
@@ -412,7 +412,7 @@ void usb_claim_port(USBDevice *dev, Error **errp)
             }
         }
         if (port == NULL) {
-            error_setg(errp, "Error: usb port %s (bus %s) not found (in use?)",
+            error_setg(errp, "usb port %s (bus %s) not found (in use?)",
                        dev->port_path, bus->qbus.name);
             return;
         }
@@ -422,7 +422,7 @@ void usb_claim_port(USBDevice *dev, Error **errp)
             usb_create_simple(bus, "usb-hub");
         }
         if (bus->nfree == 0) {
-            error_setg(errp, "Error: tried to attach usb device %s to a bus "
+            error_setg(errp, "tried to attach usb device %s to a bus "
                        "with no free ports", dev->product_desc);
             return;
         }