| Submitter | Luiz Capitulino |
|---|---|
| Date | April 5, 2010, 8:33 p.m. |
| Message ID | <1270499642-31543-2-git-send-email-lcapitulino@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/49445/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/qdev.c b/hw/qdev.c index 17a46a7..0612dc0 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -287,8 +287,7 @@ int qdev_init(DeviceState *dev) int qdev_unplug(DeviceState *dev) { if (!dev->parent_bus->allow_hotplug) { - error_report("Bus %s does not support hotplugging", - dev->parent_bus->name); + qerror_report(QERR_BUS_NO_HOTPLUG, dev->parent_bus->name); return -1; } assert(dev->info->unplug != NULL);