提交 06f22eb7 编写于 作者: M Markus Armbruster 提交者: Gerd Hoffmann

usb: Do not prefix error_setg() messages with "Error: "

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: NMarkus Armbruster <armbru@redhat.com>
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 3bc36a40
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册